fromMap static method

CustomAttributeOption? fromMap(
  1. Object? body
)

Implementation

static CustomAttributeOption? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return CustomAttributeOption(
    displayOrder: readInteger(source['display_order']),
    name: readText(source['name']),
  );
}