UnitOfMeasures.fromJson constructor
UnitOfMeasures.fromJson(
- 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(),
);
}