Display.fromJson constructor
Factory method to create a Display object from a JSON map
- Extracts displayId, flag, name, and rotation values from the given JSON
Implementation
factory Display.fromJson(Map<String, dynamic> json) => Display(
displayId: json['displayId'],
flag: json['flags'],
name: json['name'],
rotation: json['rotation'],
);