toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'emailAddress': emailAddress,
    'phoneNumber': phoneNumber,
    'password': password,
    'fullName': fullName,
    'createdAt': createdAt.toIso8601String(),
    'isAdmin': isAdmin,
    'newUser': newUser,
    'xoraiaID': xoraiaID,
    'apiKey': apiKey,
    'token': token,
    'tokenExpirationDate': tokenExpirationDate?.toIso8601String(),
    'companyTypeId': companyTypeId,
    'logo': logo,
    'description': description,
    'address': address,
    'city': city,
    'country': country?.value,
  };
}