encodeBottomAppBarTheme static method
Encodes the given value
into a JSON representation.
{
"color": "<Color>",
"elevation": "<double>",
"height": "<double>",
"padding": "<EdgeInsets>",
"shadowColor": "<Color>",
"shape": "<NotchedShape>",
"surfaceTintColor": "<Color>"
}
See also:
Implementation
static Map<String, dynamic>? encodeBottomAppBarTheme(
BottomAppBarTheme? value,
) {
Map<String, dynamic>? result;
if (value != null) {
result = <String, dynamic>{
'color': encodeColor(value.color),
'elevation': value.elevation,
'height': value.height,
'padding': encodeEdgeInsetsGeometry(value.padding as EdgeInsets?),
'shadowColor': encodeColor(value.shadowColor),
'shape': encodeNotchedShape(value.shape),
'surfaceTintColor': encodeColor(value.color),
};
}
return _stripDynamicNull(result);
}