Logging_LoggingDestination.fromJson constructor
Logging_LoggingDestination.fromJson(
- Object? j
Implementation
factory Logging_LoggingDestination.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Logging_LoggingDestination(
monitoredResource: switch (json['monitoredResource']) {
null => '',
Object $1 => decodeString($1),
},
logs: switch (json['logs']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"logs" is not a list'),
},
);
}