ChatForwardMixin$Quote.fromJson constructor

ChatForwardMixin$Quote.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ChatForwardMixin$Quote.fromJson(Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ChatMessageQuote':
      return ChatForwardMixin$Quote$ChatMessageQuote.fromJson(json);
    case r'ChatCallQuote':
      return ChatForwardMixin$Quote$ChatCallQuote.fromJson(json);
    case r'ChatInfoQuote':
      return ChatForwardMixin$Quote$ChatInfoQuote.fromJson(json);
    default:
  }
  return _$ChatForwardMixin$QuoteFromJson(json);
}