ScreenBounds.fromMap constructor

ScreenBounds.fromMap(
  1. Map json
)

Implementation

ScreenBounds.fromMap(Map<dynamic, dynamic> json) {
  right = int.tryParse(json['right'].toString());
  top = int.tryParse(json['top'].toString());
  left = int.tryParse(json['left'].toString());
  bottom = int.tryParse(json['bottom'].toString());
  width = int.tryParse(json['width'].toString());
  height = int.tryParse(json['height'].toString());
}