fromJson method
Implementation
@override
BoxShadow? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return BoxShadow(
blurRadius: ((json['blurRadius'] ?? 0) as num).toDouble(),
color: const NullableColorConverter().fromJson(
json['color'],
) ??
const Color(0xFF000000),
offset: const NullableOffsetConverter().fromJson(
json['offset'],
) ??
Offset.zero,
spreadRadius: ((json['spreadRadius'] ?? 0) as num).toDouble(),
);
}