decodeSeriesDatumConfig<D> static method
Decodes the object from a Map-like dynamic structure. This expects the JSON format to be of the following structure:
{
"seriesId": <String>,
"domainValue": <D>
}
Implementation
static common.SeriesDatumConfig<D>? decodeSeriesDatumConfig<D>(
dynamic map, {
bool validate = true,
}) {
common.SeriesDatumConfig<D>? result;
if (map is common.SeriesDatumConfig<D>) {
result = map;
} else if (map != null) {
result = common.SeriesDatumConfig<D>(
map['seriesId'],
JsonClass.parseValue<D>(map['domainValue'])!,
);
}
return result;
}