toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final data = <String, Object?>{};
  if (type != null) data['type'] = type;
  if (session != null) data['session'] = session;
  return data;
}