fromJson method
Implementation
@override
MaterialBannerThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return MaterialBannerThemeData(
backgroundColor: const NullableColorConverter().fromJson(
json['backgroundColor'],
),
contentTextStyle: const NullableTextStyleConverter().fromJson(
json['contentTextStyle'],
),
leadingPadding: const NullableEdgeInsetsGeometryConverter().fromJson(
json['leadingPadding'],
),
padding: const NullableEdgeInsetsGeometryConverter().fromJson(
json['padding'],
),
);
}