encodeBorderRadius static method
Encodes the given value
into a JSON representation.
{
"bottomLeft": <Radius>,
"bottomRight": <Radius>,
"topLeft": <Radius>,
"topRight": <Radius>,
"type": "only"
}
/// See also:
Implementation
static Map<String, dynamic>? encodeBorderRadius(BorderRadius? value) {
Map<String, dynamic>? result;
if (value != null) {
result = <String, dynamic>{
'bottomLeft': encodeRadius(value.bottomLeft),
'bottomRight': encodeRadius(value.bottomRight),
'topLeft': encodeRadius(value.topLeft),
'topRight': encodeRadius(value.topRight),
'type': 'only',
};
}
return _stripNull(result);
}