toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'email'] = this.email;
if (this.firstName != null) {
json[r'first_name'] = this.firstName;
} else {
json[r'first_name'] = null;
}
if (this.lastName != null) {
json[r'last_name'] = this.lastName;
} else {
json[r'last_name'] = null;
}
json[r'customer_name'] = this.customerName;
json[r'date_joined'] = this.dateJoined.toUtc().toIso8601String();
json[r'is_active'] = this.isActive;
json[r'is_staff'] = this.isStaff;
json[r'is_superuser'] = this.isSuperuser;
json[r'is_contractor'] = this.isContractor;
return json;
}