toJson method
Converts the AdSize object to a JSON representation.
Returns a Map containing the JSON representation of the AdSize object. The keys in the map are of type String and the values are of type int.
Implementation
Map<String, int> toJson() => <String, int>{
'width': width,
'height': height,
};