toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (ui != null) {
map['ui'] = ui?.toJson();
}
if (behavior != null) {
map['behavior'] = behavior?.toJson();
}
map['device'] = device;
return map;
}