UnitOfMeasures.fromJson constructor

UnitOfMeasures.fromJson(
  1. Json json
)

Creates a new instance from a JSON map.

Implementation

factory UnitOfMeasures.fromJson(Json json) {
  return UnitOfMeasures(
    results: (json['results'] as List<dynamic>? ?? [])
        .map((item) => UnitOfMeasuresDetails.fromJson(item as Json))
        .toList(),
  );
}