Resolution.fromJson constructor

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

Creates Resolution object from json

Implementation

factory Resolution.fromJson(Map<String, dynamic> json) {
  return Resolution(json['width'], json['height']);
}