fromJson method

  1. @override
CheckboxThemeData? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

@override
CheckboxThemeData? fromJson(Map<String, dynamic>? json) {
  if (json == null) return null;

  return CheckboxThemeData(
    checkColor: const NullableMaterialStatePropertyColorConverter().fromJson(
      json['checkColor'],
    ),
    fillColor: const NullableMaterialStatePropertyColorConverter().fromJson(
      json['fillColor'],
    ),
    materialTapTargetSize:
        const NullableMaterialTapTargetSizeConverter().fromJson(
      json['materialTapTargetSize'],
    ),
    mouseCursor:
        const NullableMaterialStatePropertyMouseCursorConverter().fromJson(
      json['mouseCursor'],
    ),
    overlayColor:
        const NullableMaterialStatePropertyColorConverter().fromJson(
      json['overlayColor'],
    ),
    splashRadius: (json['splashRadius'] as num?)?.toDouble(),
    visualDensity: const NullableVisualDensityConverter().fromJson(
      json['visualDensity'],
    ),
  );
}