toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.accountId != null) {
    json[r'accountId'] = this.accountId;
  } else {
    json[r'accountId'] = null;
  }
  if (this.isRead != null) {
    json[r'isRead'] = this.isRead;
  } else {
    json[r'isRead'] = null;
  }
  if (this.isStarred != null) {
    json[r'isStarred'] = this.isStarred;
  } else {
    json[r'isStarred'] = null;
  }
    json[r'addLabels'] = this.addLabels;
    json[r'removeLabels'] = this.removeLabels;
  return json;
}