toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.fullName != null) {
    json[r'fullName'] = this.fullName;
  } else {
    json[r'fullName'] = null;
  }
  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;
  }
    json[r'email'] = this.email;
    json[r'status'] = this.status;
    json[r'role'] = this.role;
    json[r'metadata'] = this.metadata;
    json[r'created'] = this.created.toUtc().toIso8601String();
    json[r'updated'] = this.updated.toUtc().toIso8601String();
  return json;
}