encodeEdgeInsetsGeometry static method
Encodes the given value
to a JSON compatible Map. The returned result
will always have the following format:
{
"bottom": <double>,
"left": <double>,
"right": <double>,
"top": <double>
}
Implementation
static Map<String, dynamic>? encodeEdgeInsetsGeometry(EdgeInsets? value) {
Map<String, dynamic>? result;
if (value != null) {
result = <String, dynamic>{
'bottom': value.bottom,
'left': value.left,
'right': value.right,
'top': value.top,
};
}
return _stripNull(result);
}