fromMap static method
Implementation
static CustomAttributes? fromMap(Object? body) {
final source = readRecord(body, envelopeKey: 'custom_attribute');
if (source == null) return null;
return CustomAttributes(
activityLogs: readList<CustomAttributesActivityLog>(
source['activity_logs'], CustomAttributesActivityLog.fromMap),
createdBy: readAny(source['created_by']),
createdOn: readText(source['created_on']),
description: readText(source['description']),
displayName: readText(source['display_name']),
encryptData: readFlag(source['encrypt_data']),
href: readText(source['href']),
id: readText(source['id']),
includeSeconds: readAny(source['include_seconds']),
isMandatory: readFlag(source['is_mandatory']),
lastUpdatedBy: readAny(source['last_updated_by']),
lastUpdatedOn: readText(source['last_updated_on']),
maxLength: readInteger(source['max_length']),
maxSize: readAny(source['max_size']),
maxValue: readAny(source['max_value']),
metaData: readText(source['meta_data']),
minValue: readAny(source['min_value']),
name: readText(source['name']),
object: readText(source['object']),
options: readList<CustomAttributesOption>(
source['options'], CustomAttributesOption.fromMap),
status: readText(source['status']),
timeFormat: readAny(source['time_format']),
type: readText(source['type']),
unit: readAny(source['unit']),
uom: readAny(source['uom']),
useIn: readList<CustomAttributesUseIn>(
source['use_in'], CustomAttributesUseIn.fromMap),
uuid: readText(source['uuid']),
version: readInteger(source['version']),
);
}