toMap method Null safety
Convert this object to a JSON string.
Implementation
@override
Map<String, dynamic> toMap() {
return {
if (templateUrl != null) 'templateUrl': templateUrl,
if (height != null) 'height': height,
if (width != null) 'width': width,
};
}