ScrollSnapHighlightConfig.fromJson constructor

ScrollSnapHighlightConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ScrollSnapHighlightConfig.fromJson(Map<String, dynamic> json) {
  return ScrollSnapHighlightConfig(
    scrollSnapContainerHighlightConfig:
        ScrollSnapContainerHighlightConfig.fromJson(
            json['scrollSnapContainerHighlightConfig']
                as Map<String, dynamic>),
    nodeId: dom.NodeId.fromJson(json['nodeId'] as int),
  );
}