IGroupCallRoomMemberCallState.fromJson constructor

IGroupCallRoomMemberCallState.fromJson(
  1. Map<String, dynamic> json
)

Implementation

IGroupCallRoomMemberCallState.fromJson(Map<String, dynamic> json) {
  call_id = json['m.call_id'];
  if (json['m.foci'] != null) {
    foci = (json['m.foci'] as List<dynamic>).cast<String>();
  }
  if (json['m.devices'] != null) {
    devices = (json['m.devices'] as List<dynamic>)
        .map((device) => IGroupCallRoomMemberDevice.fromJson(device))
        .toList();
  }
}