CustomBorder.fromJson constructor
Implementation
CustomBorder.fromJson(Map<String, dynamic> json) {
top = (json) {
return json is int
? json.toDouble()
: (json is String ? double.parse(json) : 0.0);
}(json['top']);
bottom = json['bottom'].toDouble();
left = json['left'].toDouble();
right = json['right'].toDouble();
}