toMap method
Implementation
Map<String, dynamic> toMap() {
final Map<String, dynamic> map = <String, dynamic>{};
if (pageType != null) {
map['pageType'] = _pageTypeToNative(pageType!);
}
if (hideCloseIcon != null) {
map['hideCloseIcon'] = hideCloseIcon;
}
if (width != null) {
map['width'] = width;
}
if (height != null) {
map['height'] = height;
}
if (scene != null && scene!.isNotEmpty) {
map['scene'] = scene;
}
if (extra != null && extra!.isNotEmpty) {
map['extra'] = extra;
}
return map;
}