toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (historyId != null) 'historyId': historyId!,
      if (id != null) 'id': id!,
      if (internalDate != null) 'internalDate': internalDate!,
      if (labelIds != null) 'labelIds': labelIds!,
      if (payload != null) 'payload': payload!,
      if (raw != null) 'raw': raw!,
      if (sizeEstimate != null) 'sizeEstimate': sizeEstimate!,
      if (snippet != null) 'snippet': snippet!,
      if (threadId != null) 'threadId': threadId!,
    };