NewSessionResponse constructor

NewSessionResponse({
  1. required SessionId sessionId,
  2. SessionModeState? modes,
  3. List<SessionConfigOption>? configOptions,
  4. AcpJsonMap? meta,
})

Implementation

NewSessionResponse({
  required this.sessionId,
  this.modes,
  List<SessionConfigOption>? configOptions,
  AcpJsonMap? meta,
}) : configOptions = configOptions == null
         ? null
         : List.unmodifiable(configOptions!),
     meta = meta == null ? null : deepFreezeAcpJsonMap(meta!);