DimensionsPhysical.fromJson constructor
Implementation
factory DimensionsPhysical.fromJson(
Map<String, Object?> json,
) =>
DimensionsPhysical(
weightUnit:
json["weight_unit"] == null ? null : json["weight_unit"] as String,
weight:
json["weight"] == null ? null : (json["weight"] as num).toDouble(),
size: json["size"] == null ? null : (json["size"] as num).toDouble(),
volumeUnit:
json["volume_unit"] == null ? null : json["volume_unit"] as String,
volume:
json["volume"] == null ? null : (json["volume"] as num).toDouble(),
length:
json["length"] == null ? null : (json["length"] as num).toDouble(),
height:
json["height"] == null ? null : (json["height"] as num).toDouble(),
width: json["width"] == null ? null : (json["width"] as num).toDouble(),
);