toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
if (_$data.containsKey('width')) {
final l$width = width;
result$data['width'] = l$width;
}
if (_$data.containsKey('height')) {
final l$height = height;
result$data['height'] = l$height;
}
if (_$data.containsKey('x')) {
final l$x = x;
result$data['x'] = l$x;
}
if (_$data.containsKey('y')) {
final l$y = y;
result$data['y'] = l$y;
}
if (_$data.containsKey('alt')) {
final l$alt = alt;
result$data['alt'] = l$alt;
}
if (_$data.containsKey('baseUrl')) {
final l$baseUrl = baseUrl;
result$data['baseUrl'] = l$baseUrl;
}
if (_$data.containsKey('path')) {
final l$path = path;
result$data['path'] = l$path;
}
return result$data;
}