UploadAttachment$Mutation$UploadAttachment$UploadAttachmentOk$Attachment.fromJson constructor

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

Implementation

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