toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
  'unique_id': uniqueId.toString(),
  'is_active': isActive,
  'was_missed': wasMissed,
  'is_video': isVideo,
  'duration': duration,
  'other_participant_ids': otherParticipantIds
      .map((item) => item.toJson())
      .toList(),
  '@type': constructor,
};