LogDto.fromJson constructor

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

Implementation

factory LogDto.fromJson(Map<String, Object?> json) => LogDto(
      id: json['id'] as String,
      level: logLevelDtoFromName(json['level'] as String),
      tsMicros: json['tsMicros'] as int,
      message: json['message'] as String? ?? '',
      orchestrationId: json['orchestrationId'] as String?,
      systemId: json['systemId'] as String?,
      entityRefs: (json['entityRefs'] as List?)?.cast<String>() ?? const [],
      stack: json['stack'] as String?,
    );