Attribute.fromMap constructor

Attribute.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Attribute.fromMap(Map<String, dynamic> map) {
  return Attribute(
    customAttributeId: map['customAttributeId'] as int?,
    values: (map['values'] as List<dynamic>?)
        ?.map((e) => AttributeValue.fromMap(e as Map<String, dynamic>))
        .toList(),
  );
}