fromJson method
Implementation
@override
ToggleButtonsThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return ToggleButtonsThemeData(
borderColor: const NullableColorConverter().fromJson(
json['borderColor'],
),
borderRadius: const NullableBorderRadiusConverter().fromJson(
json['borderRadius'],
),
borderWidth: (json['borderWidth'] as num?)?.toDouble(),
color: const NullableColorConverter().fromJson(
json['color'],
),
constraints: const NullableBoxConstraintsConverter().fromJson(
json['constraints'],
),
disabledBorderColor: const NullableColorConverter().fromJson(
json['disabledBorderColor'],
),
disabledColor: const NullableColorConverter().fromJson(
json['disabledColor'],
),
fillColor: const NullableColorConverter().fromJson(
json['fillColor'],
),
focusColor: const NullableColorConverter().fromJson(
json['focusColor'],
),
highlightColor: const NullableColorConverter().fromJson(
json['highlightColor'],
),
hoverColor: const NullableColorConverter().fromJson(
json['hoverColor'],
),
selectedBorderColor: const NullableColorConverter().fromJson(
json['selectedBorderColor'],
),
selectedColor: const NullableColorConverter().fromJson(
json['selectedColor'],
),
splashColor: const NullableColorConverter().fromJson(
json['splashColor'],
),
textStyle: const NullableTextStyleConverter().fromJson(
json['textStyle'],
),
);
}