Display.fromMap constructor
Implementation
factory Display.fromMap(Map<String, dynamic> map) {
return Display(
id: map['id'] as int,
name: map['name'] as String,
width: map['width'] as int,
height: map['height'] as int,
refreshRate: map['refreshRate'] as double,
isDefault: map['isDefault'] as bool,
density: map["density"] as double,
);
}