toJson method

Map<String, dynamic> toJson()

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;
}