ChatInfoQuoteMixin$Action.fromJson constructor

ChatInfoQuoteMixin$Action.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ChatInfoQuoteMixin$Action.fromJson(Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ChatInfoActionAvatarUpdated':
      return ChatInfoQuoteMixin$Action$ChatInfoActionAvatarUpdated.fromJson(
          json);
    case r'ChatInfoActionCreated':
      return ChatInfoQuoteMixin$Action$ChatInfoActionCreated.fromJson(json);
    case r'ChatInfoActionMemberAdded':
      return ChatInfoQuoteMixin$Action$ChatInfoActionMemberAdded.fromJson(
          json);
    case r'ChatInfoActionMemberRemoved':
      return ChatInfoQuoteMixin$Action$ChatInfoActionMemberRemoved.fromJson(
          json);
    case r'ChatInfoActionNameUpdated':
      return ChatInfoQuoteMixin$Action$ChatInfoActionNameUpdated.fromJson(
          json);
    default:
  }
  return _$ChatInfoQuoteMixin$ActionFromJson(json);
}