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