Dimension.fromJson constructor

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

Implementation

Dimension.fromJson(Map<String, dynamic> json)
    : length =
          json['length'] is int ? json['length'].toString() : json['length'],
      width = json['width'] is int ? json['width'].toString() : json['width'],
      height =
          json['height'] is int ? json['height'].toString() : json['height'];