Size.fromJson constructor

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

Implementation

factory Size.fromJson(Map<String, dynamic> json) => Size(
      width: (json["width"] as num).toDouble(),
      height: (json["height"] as num).toDouble(),
    );