toJson method Null safety

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "borderLeft": borderLeft,
    "borderTop": borderTop,
    "borderRight": borderRight,
    "borderBottom": borderBottom,
    "borderWidth": borderWidth,
    "borderStyle": borderStyle,
    "borderColor": borderColor,
    "borderBottomLeftRadius": borderBottomLeftRadius,
    "borderTopLeftRadius": borderTopLeftRadius,
    "borderBottomRightRadius": borderBottomRightRadius,
    "borderTopRightRadius": borderTopRightRadius,
    "borderRightRadius": borderRightRadius,
    "borderLeftRadius": borderLeftRadius,
    "borderRadius": borderRadius
  };
}