decode static method
SvgTheme?
decode(
- dynamic map
Implementation
static SvgTheme? decode(dynamic map) {
SvgTheme? result;
if (map is SvgTheme) {
result = map;
} else if (map != null) {
result = SvgTheme(
currentColor: ThemeDecoder.decodeColor(map['currentColor']) ??
const Color(0xFF000000),
fontSize: JsonClass.maybeParseDouble(map['fontSize']) ?? 14.0,
xHeight: JsonClass.maybeParseDouble(map['xHeight']),
);
}
return result;
}