SpecificationList.fromMap constructor

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

Implementation

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

  return SpecificationList(
    total: map['total'],
    specifications: List<Specification>.from(
      map['specifications'].map((p) => Specification.fromMap(p)),
    ),
  );
}