encodeBorderSide static method
Encodes the given value
into a JSON representation.
{
"color": <Color>,
"style": <BorderStyle>,
"width": <double>
}
See also:
Implementation
static Map<String, dynamic>? encodeBorderSide(BorderSide? value) {
Map<String, dynamic>? result;
if (value != null) {
result = <String, dynamic>{
'color': encodeColor(value.color),
'style': encodeBorderStyle(value.style),
'width': value.width,
};
}
return _stripNull(result);
}