toJson method

dynamic toJson()

Implementation

dynamic toJson() {
  if (this is Border) {
    var border = this as Border;
    return {
      'left': border.left.toJson(),
      'top': border.top.toJson(),
      'right': border.right.toJson(),
      'bottom': border.bottom.toJson(),
    };
  }
  return null;
}