UseChatDirectLink$Mutation$UseChatDirectLink.fromJson constructor

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

Implementation

factory UseChatDirectLink$Mutation$UseChatDirectLink.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'UseChatDirectLinkOk':
      return UseChatDirectLink$Mutation$UseChatDirectLink$UseChatDirectLinkOk
          .fromJson(json);
    case r'UseChatDirectLinkError':
      return UseChatDirectLink$Mutation$UseChatDirectLink$UseChatDirectLinkError
          .fromJson(json);
    default:
  }
  return _$UseChatDirectLink$Mutation$UseChatDirectLinkFromJson(json);
}