ResourceRuntime.fromJson constructor
ResourceRuntime.fromJson(
- Object? j
Implementation
factory ResourceRuntime.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ResourceRuntime(
accessUris: switch (json['accessUris']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): decodeString(e.value),
},
_ => throw const FormatException('"accessUris" is not an object'),
},
notebookRuntimeTemplate: switch (json['notebookRuntimeTemplate']) {
null => '',
Object $1 => decodeString($1),
},
);
}