toMap method
Implementation
@override
Map<String, dynamic> toMap() {
Map<String, Object> hashMap = Map();
if (address != null) {
hashMap[FIELD_ADDRESS] = address!.toMap();
}
hashMap[FIELD_EMAIL] = email??"";
hashMap[FIELD_NAME] = name??"";
hashMap[FIELD_PHONE] = phone??"";
if (verifiedAddress != null) {
hashMap[FIELD_VERIFIED_ADDRESS] = verifiedAddress!.toMap();
}
hashMap[FIELD_VERIFIED_EMAIL] = verifiedEmail??"";
hashMap[FIELD_VERIFIED_NAME] = verifiedName??"";
hashMap[FIELD_VERIFIED_PHONE] = verifiedPhone??"";
removeNullAndEmptyParams(hashMap);
return hashMap;
}