toJson method
Implementation
@override
Map<String, dynamic>? toJson(BoxBorder? object) {
if (object == null) return null;
if (object is Border) {
return {
'bottom': const NullableBorderSideConverter().toJson(object.bottom),
'left': const NullableBorderSideConverter().toJson(object.left),
'right': const NullableBorderSideConverter().toJson(object.right),
'top': const NullableBorderSideConverter().toJson(object.top),
};
}
throw 'Json_Unsuported_Value';
}