DisplayMode.fromJson constructor

DisplayMode.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DisplayMode.fromJson(Map<String, dynamic> json) {
  return DisplayMode(
    id: json['id'] as int,
    width: json['width'] as int,
    height: json['height'] as int,
    refreshRate: json['refreshRate'] as double,
  );
}