toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'room_id': roomId,
  'room_name': roomName,
  'started_at': createdAt.toIso8601String(),
  'is_active': isActive,
  'kind': kind,
  if (agentId != null) 'agent_id': agentId,
  if (agentName != null) 'agent_name': agentName,
};