Display.fromMap constructor

Display.fromMap(
  1. Map<String, dynamic> map
)

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,
  );
}