UploadAttachment$Mutation$UploadAttachment.fromJson constructor

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

Implementation

factory UploadAttachment$Mutation$UploadAttachment.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'UploadAttachmentOk':
      return UploadAttachment$Mutation$UploadAttachment$UploadAttachmentOk
          .fromJson(json);
    case r'UploadAttachmentError':
      return UploadAttachment$Mutation$UploadAttachment$UploadAttachmentError
          .fromJson(json);
    default:
  }
  return _$UploadAttachment$Mutation$UploadAttachmentFromJson(json);
}