PluginPrintParams.fromJson constructor
PluginPrintParams.fromJson(})
Implementation
factory PluginPrintParams.fromJson(
JsonDecoder jsonDecoder,
String jsonPath,
Object? json, {
ClientUriConverter? clientUriConverter,
}) {
json ??= {};
if (json is Map) {
PluginPrint pluginPrint;
if (json.containsKey('pluginPrint')) {
pluginPrint = PluginPrint.fromJson(
jsonDecoder,
'$jsonPath.pluginPrint',
json['pluginPrint'],
clientUriConverter: clientUriConverter,
);
} else {
throw jsonDecoder.mismatch(jsonPath, "'pluginPrint'", json);
}
return PluginPrintParams(pluginPrint);
} else {
throw jsonDecoder.mismatch(jsonPath, "'plugin.print params'", json);
}
}