encodeEdgeInsetsDirectional static method
Encodes the given value
to a JSON compatible Map. The returned result
will always have one of the following formats:
{
"bottom": "<double>",
"end": "<double>",
"start": "<double>",
"top": "<double>"
}
Implementation
static Map<String, dynamic>? encodeEdgeInsetsDirectional(
EdgeInsetsDirectional? value,
) {
Map<String, dynamic>? result;
if (value != null) {
result = <String, dynamic>{
'bottom': value.bottom,
'end': value.end,
'start': value.start,
'top': value.top,
};
}
return _stripDynamicNull(result);
}