fromJson method
Implementation
@override
SwitchThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return SwitchThemeData(
materialTapTargetSize:
const NullableMaterialTapTargetSizeConverter().fromJson(
json['materialTapTargetSize'],
),
mouseCursor:
const NullableMaterialStatePropertyMouseCursorConverter().fromJson(
json['mouseCursor'],
),
overlayColor:
const NullableMaterialStatePropertyColorConverter().fromJson(
json['overlayColor'],
),
splashRadius: (json['splashRadius'] as num?)?.toDouble(),
thumbColor: const NullableMaterialStatePropertyColorConverter().fromJson(
json['thumbColor'],
),
trackColor: const NullableMaterialStatePropertyColorConverter().fromJson(
json['trackColor'],
),
);
}