fromJson method
Implementation
@override
ScrollbarThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return ScrollbarThemeData(
crossAxisMargin: (json['crossAxisMargin'] as num?)?.toDouble(),
isAlwaysShown: json['isAlwaysShown'] == null
? null
: (json['isAlwaysShown'] as bool),
mainAxisMargin: (json['mainAxisMargin'] as num?)?.toDouble(),
minThumbLength: (json['minThumbLength'] as num?)?.toDouble(),
radius: const NullableRadiusConverter().fromJson(
json['radius'],
),
showTrackOnHover: json['showTrackOnHover'] == null
? null
: (json['showTrackOnHover'] as bool),
thickness: const NullableMaterialStatePropertyDoubleConverter().fromJson(
json['thickness'],
),
);
}