EditChatMessage$Mutation$EditChatMessage.fromJson constructor

EditChatMessage$Mutation$EditChatMessage.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EditChatMessage$Mutation$EditChatMessage.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ChatEventsVersioned':
      return EditChatMessage$Mutation$EditChatMessage$ChatEventsVersioned
          .fromJson(json);
    case r'EditChatMessageError':
      return EditChatMessage$Mutation$EditChatMessage$EditChatMessageError
          .fromJson(json);
    default:
  }
  return _$EditChatMessage$Mutation$EditChatMessageFromJson(json);
}