SessionState constructor

SessionState({
  1. String? sessionId,
  2. List<Message>? messages,
  3. Object? custom,
  4. List<Artifact>? artifacts,
})

Implementation

SessionState({
  String? sessionId,
  List<Message>? messages,
  Object? custom,
  List<Artifact>? artifacts,
}) {
  _json = {
    'sessionId': ?sessionId,
    'messages': ?messages?.map((e) => e.toJson()).toList(),
    'custom': ?custom,
    'artifacts': ?artifacts?.map((e) => e.toJson()).toList(),
  };
}