toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
    json[r'sid'] = this.sid;
    json[r'userId'] = this.userId;
    json[r'displayName'] = this.displayName;
    json[r'customerName'] = this.customerName;
    json[r'address1'] = this.address1;
    json[r'city'] = this.city;
    json[r'region'] = this.region;
    json[r'postalCode'] = this.postalCode;
    json[r'phoneCountry'] = this.phoneCountry;
    json[r'accountSid'] = this.accountSid;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
  return json;
}