decodeShadows function
Implementation
List<Shadow>? decodeShadows(dynamic data) {
if (data == null) {
return null;
}
return data
.map(
(e) => Shadow(
color: decodeColor(e['color'])!,
offset: decodeOffset(e['offset'])!,
blurRadius: e['blurRadius'],
),
)
.toList();
}