fromMap static method

CustomAttributesUseIn? fromMap(
  1. Object? body
)

Implementation

static CustomAttributesUseIn? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return CustomAttributesUseIn(
    associatedAccountGroups:
        readList<Object>(source['associated_account_groups'], readAny),
    associatedItemGroups:
        readList<Object>(source['associated_item_groups'], readAny),
    associatedUserGroups:
        readList<Object>(source['associated_user_groups'], readAny),
    enabled: readFlag(source['enabled']),
    requiredValue: readFlag(source['required']),
    resource: readText(source['resource']),
    unique: readFlag(source['unique']),
  );
}