toMap static method
Implementation
static Map<String, dynamic> toMap(UserModel model) {
return {
'address': AddressMapper.toMap(model.address),
'id': model.id,
'email': model.email,
'username': model.username,
'password': model.password,
'name': NameMapper.toMap(model.name),
'phone': model.phone,
};
}