fromJson method
Implementation
@override
BottomSheetThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return BottomSheetThemeData(
backgroundColor: const NullableColorConverter().fromJson(
json['backgroundColor'],
),
clipBehavior: const NullableClipConverter().fromJson(
json['clipBehavior'],
),
elevation: (json['elevation'] as num?)?.toDouble(),
modalBackgroundColor: const NullableColorConverter().fromJson(
json['modalBackgroundColor'],
),
modalElevation: (json['modalElevation'] as num?)?.toDouble(),
shape: const NullableShapeBorderConverter().fromJson(
json['shape'],
),
);
}