toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'emailAddress': emailAddress,
'phoneNumber': phoneNumber,
'password': password,
'fullName': fullName,
'createdAt': createdAt.toIso8601String(),
'updatedAt': updatedAt?.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,
'availableCredit': availableCredit,
'blocked': blocked,
'isVerified': isVerified,
'codePromo': codePromo,
};
}