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