toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'userId'] = this.userId;
  if (this.complianceAddress != null) {
    json[r'complianceAddress'] = this.complianceAddress;
  } else {
    json[r'complianceAddress'] = null;
  }
  if (this.emergencyAddress != null) {
    json[r'emergencyAddress'] = this.emergencyAddress;
  } else {
    json[r'emergencyAddress'] = null;
  }
    json[r'phoneNumber'] = this.phoneNumber;
    json[r'phoneCountry'] = this.phoneCountry;
    json[r'phonePlan'] = this.phonePlan;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
  return json;
}