fromMap static method
Implementation
static EmployeeContact? fromMap(Object? body) {
final source = readRecord(body);
if (source == null) return null;
return EmployeeContact(
address: readAny(source['address']),
createdBy: EmployeeContactCreatedBy.fromMap(source['created_by']),
createdOn: readText(source['created_on']),
email: EmployeeContactEmail.fromMap(source['email']),
fax: readAny(source['fax']),
id: readText(source['id']),
lastUpdatedBy: readAny(source['last_updated_by']),
lastUpdatedOn: readAny(source['last_updated_on']),
mobile: readAny(source['mobile']),
name: EmployeeContactName.fromMap(source['name']),
object: readText(source['object']),
phone: readAny(source['phone']),
status: readText(source['status']),
type: readText(source['type']),
version: readInteger(source['version']),
);
}