LogStream.fromJson constructor

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

a LogStream return type can be :

Implementation

factory LogStream.fromJson(Map<String, dynamic> json) {
  switch (json["@type"]) {
    case LogStreamDefault.CONSTRUCTOR:
      return LogStreamDefault.fromJson(json);
    case LogStreamFile.CONSTRUCTOR:
      return LogStreamFile.fromJson(json);
    case LogStreamEmpty.CONSTRUCTOR:
      return LogStreamEmpty.fromJson(json);
    default:
      return const LogStream();
  }
}