SessionEvent.fromJson constructor

SessionEvent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SessionEvent.fromJson(Map<String, dynamic> json) {
  return SessionEvent(
    name: json['name'] ?? '',
    author: json['author'] ?? '',
    content: decode(json['content'], Content.fromJson),
    invocationId: json['invocationId'] ?? '',
    actions: decode(json['actions'], EventActions.fromJson),
    timestamp: decodeCustom(json['timestamp'], protobuf.Timestamp.fromJson),
    errorCode: json['errorCode'] ?? '',
    errorMessage: json['errorMessage'] ?? '',
    eventMetadata: decode(json['eventMetadata'], EventMetadata.fromJson),
  );
}