toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'uid': uid,
    'email': email,
    'firstName': firstName,
    'lastName': lastName,
    'phone': phone,
    'countryCode': countryCode,
    'country': country,
    'password': password,
    'role': role,
    'isActive': isActive,
    'createdAt': createdAt?.toIso8601String(),
    'updatedAt': updatedAt?.toIso8601String(),
    'hasDefaultPassword': hasDefaultPassword,
    'imgUrl': imgUrl,
  };
}