CustomBorder.fromJson constructor

CustomBorder.fromJson(
  1. Map<String, dynamic> json
)

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();
}