runtimeJson<TRuntime> method
TRuntime
runtimeJson<TRuntime>({})
Decodes the runtime metadata payload with a JSON decoder.
Implementation
TRuntime runtimeJson<TRuntime>({
required TRuntime Function(Map<String, dynamic> payload) decode,
String? typeName,
}) {
return PayloadCodec<TRuntime>.json(
decode: decode,
typeName: typeName,
).decode(runtime);
}