toJson method
转换为Map
Implementation
@override
Map toJson() {
Map<String, dynamic> result = {
"adUnitId": adUnitId,
"count": count,
"width": width,
"height": height,
"useSurfaceView": useSurfaceView
};
result.removeWhere((key, value) => value == null);
return result;
}