FunctionWorkspaceTailEventBatchLogs.fromJson constructor

FunctionWorkspaceTailEventBatchLogs.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory FunctionWorkspaceTailEventBatchLogs.fromJson(
  Map<String, Object?> json,
) => FunctionWorkspaceTailEventBatchLogs(
  id: json['id'] as String,
  sequence: (json['sequence'] as num).toInt(),
  ingestedAt: json['ingestedAt'] as String,
  eventTime: json['eventTime'],
  source: FunctionWorkspaceTailQuerySource.fromWire(json['source'] as String),
  severity: FunctionWorkspaceTailQuerySeverity.fromWire(
    json['severity'] as String,
  ),
  message: json['message'] as String,
  fields: (json['fields'] as Map).cast<String, Object?>(),
  identity: FunctionWorkspaceTailEventBatchLogsIdentity.fromJson(
    (json['identity'] as Map).cast<String, Object?>(),
  ),
);