fromJson method

  1. @override
BottomAppBarTheme? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

@override
BottomAppBarTheme? fromJson(Map<String, dynamic>? json) {
  if (json == null) return null;

  return BottomAppBarTheme(
    color: const NullableColorConverter().fromJson(
      json['color'],
    ),
    elevation: (json['elevation'] as num?)?.toDouble(),
    shape: const NullableNotchedShapeConverter().fromJson(
      json['shape'],
    ),
  );
}