toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'top': kIsWeb ? top : jsonEncode(top),
'right': kIsWeb ? right : jsonEncode(right),
'bottom': kIsWeb ? bottom : jsonEncode(bottom),
'left': kIsWeb ? left : jsonEncode(left),
};
}