toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.firstName != null) {
    json[r'firstName'] = this.firstName;
  } else {
    json[r'firstName'] = null;
  }
  if (this.lastName != null) {
    json[r'lastName'] = this.lastName;
  } else {
    json[r'lastName'] = null;
  }
  if (this.company != null) {
    json[r'company'] = this.company;
  } else {
    json[r'company'] = null;
  }
  if (this.emailAddresses != null) {
    json[r'emailAddresses'] = this.emailAddresses;
  } else {
    json[r'emailAddresses'] = null;
  }
  if (this.tags != null) {
    json[r'tags'] = this.tags;
  } else {
    json[r'tags'] = null;
  }
  if (this.metaData != null) {
    json[r'metaData'] = this.metaData;
  } else {
    json[r'metaData'] = null;
  }
  if (this.optOut != null) {
    json[r'optOut'] = this.optOut;
  } else {
    json[r'optOut'] = null;
  }
  if (this.groupId != null) {
    json[r'groupId'] = this.groupId;
  } else {
    json[r'groupId'] = null;
  }
  return json;
}