toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  switch ($$typename) {
    case r'ImageAttachment':
      return (this
              as UploadAttachment$Mutation$UploadAttachment$UploadAttachmentOk$Attachment$ImageAttachment)
          .toJson();
    case r'FileAttachment':
      return (this
              as UploadAttachment$Mutation$UploadAttachment$UploadAttachmentOk$Attachment$FileAttachment)
          .toJson();
    default:
  }
  return _$UploadAttachment$Mutation$UploadAttachment$UploadAttachmentOk$AttachmentToJson(
      this);
}