fromJson method
Implementation
@override
SnackBarThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return SnackBarThemeData(
actionTextColor: const NullableColorConverter().fromJson(
json['actionTextColor'],
),
backgroundColor: const NullableColorConverter().fromJson(
json['backgroundColor'],
),
behavior: const NullableSnackBarBehaviorConverter().fromJson(
json['behavior'],
),
contentTextStyle: const NullableTextStyleConverter().fromJson(
json['contentTextStyle'],
),
disabledActionTextColor: const NullableColorConverter().fromJson(
json['disabledActionTextColor'],
),
elevation: (json['elevation'] as num?)?.toDouble(),
shape: const NullableShapeBorderConverter().fromJson(
json['shape'],
),
);
}