toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['uid'] = this.uid;
  data['email'] = this.email;
  data['firstName'] = this.firstName;
  data['lastName'] = this.lastName;
  data['phone'] = this.phone;
  data['countryCode'] = this.countryCode;
  data['country'] = this.country;
  data['role'] = this.role;
  data['isActive'] = this.isActive;
  data['createdAt'] = this.createdAt;
  data['updatedAt'] = this.updatedAt;
  data['hasDefaultPassword'] = this.hasDefaultPassword;
  data['imgUrl'] = this.imgUrl;
  return data;
}