Dimension.fromMap constructor
Dimension.fromMap(
- Map<String, dynamic> map
)
Implementation
factory Dimension.fromMap(Map<String, dynamic> map) {
return Dimension(
Field.getDouble(map['mobile_small']['size'], 320),
Field.getDouble(map['mobile_medium']['size'], 375),
Field.getDouble(map['mobile_large']['size'], 425),
Field.getDouble(map['tablet']['size'], 768),
Field.getDouble(map['laptop']['size'], 1024),
Field.getDouble(map['laptop_large']['size'], 1440),
Field.getDouble(map['four_k']['size'], 2560),
);
}