encodeBottomAppBarTheme static method

Map<String, dynamic>? encodeBottomAppBarTheme(
  1. BottomAppBarTheme? value
)

Encodes the given value into a JSON representation.

{
  "color": <Color>,
  "elevation": <double>,
  "shape": <NotchedShape>
}

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,
      'shape': encodeNotchedShape(value.shape),
    };
  }

  return _stripNull(result);
}