ScrollSnapContainerHighlightConfig.fromJson constructor
ScrollSnapContainerHighlightConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ScrollSnapContainerHighlightConfig.fromJson(
Map<String, dynamic> json) {
return ScrollSnapContainerHighlightConfig(
snapportBorder: json.containsKey('snapportBorder')
? LineStyle.fromJson(json['snapportBorder'] as Map<String, dynamic>)
: null,
snapAreaBorder: json.containsKey('snapAreaBorder')
? LineStyle.fromJson(json['snapAreaBorder'] as Map<String, dynamic>)
: null,
scrollMarginColor: json.containsKey('scrollMarginColor')
? dom.RGBA.fromJson(json['scrollMarginColor'] as Map<String, dynamic>)
: null,
scrollPaddingColor: json.containsKey('scrollPaddingColor')
? dom.RGBA
.fromJson(json['scrollPaddingColor'] as Map<String, dynamic>)
: null,
);
}