toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{};
  data['m.call_id'] = call_id;
  if (foci != null) {
    data['m.foci'] = foci;
  }
  if (devices.isNotEmpty) {
    data['m.devices'] = devices.map((e) => e.toJson()).toList();
  }
  return data;
}