fromMap static method

LogStream? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static LogStream? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'logStreamDefault':
      return LogStreamDefault.fromMap(_map);
    case 'logStreamFile':
      return LogStreamFile.fromMap(_map);
    case 'logStreamEmpty':
      return LogStreamEmpty.fromMap(_map);
    case null:
    default:
      return null;
  }
}