fromJson static method

LogEvent fromJson(
  1. dynamic value
)

Returns a new LogEvent instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static LogEvent fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return LogEvent(
    time: mapDateTime(json, r'time', ''),
    message: mapValueOfType<String>(json, r'message'),
    runID: mapValueOfType<String>(json, r'runID'),
  );
}