fromJson method
Implementation
@override
BorderSide? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return BorderSide(
color: const NullableColorConverter().fromJson(
json['color'],
) ??
#ff000000 as Color,
style: const NullableBorderStyleConverter().fromJson(
json['style'],
) ??
BorderStyle.solid,
width: ((json['width'] ?? 1.0) as num).toDouble(),
);
}