AttributeList.fromMap constructor

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

Implementation

factory AttributeList.fromMap(
  Map<String, dynamic> map,
) {
  map = {
    'total': 0,
    'attributes': [],
    ...map,
  };

  return AttributeList(
    total: map['total'],
    attributes: List.from(map['attributes'] ?? []),
  );
}