Size.fromJson constructor

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

Implementation

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