Size.fromJson constructor

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

Create Size from JSON

Implementation

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