DFTileLayer.fromJson constructor
DFTileLayer.fromJson(
- Map<String, dynamic> json
)
Implementation
DFTileLayer.fromJson(Map<String, dynamic> json) {
data = json['data'].cast<int>();
height = double.tryParse(json['height'].toString()) ?? 0.0;
id = json['id'];
name = json['name'];
opacity = double.tryParse(json['opacity'].toString()) ?? 0.0;
type = json['type'].toString();
visible = json['visible'];
width = double.tryParse(json['width'].toString()) ?? 0.0;
x = double.tryParse(json['x'].toString()) ?? 0.0;
y = double.tryParse(json['y'].toString()) ?? 0.0;
}