toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['customer_id'] = this.customerId;
data['first_name'] = this.firstName;
data['last_name'] = this.lastName;
if (this.profiles != null) {
data['profiles'] = this.profiles!.map((v) => v.toJson()).toList();
}
if (this.devices != null) {
data['devices'] = this.devices!.map((v) => v.toJson()).toList();
}
return data;
}