NavigationLookAndFeel.fromJson constructor

NavigationLookAndFeel.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory NavigationLookAndFeel.fromJson(Map<String, Object?> json) {
  return NavigationLookAndFeel(
    color: json[r'color'] as String? ?? '',
    highlightColor: json[r'highlightColor'] as String?,
    hoverOrFocus: NavigationLookAndFeelHoverOrFocus.fromJson(
        json[r'hoverOrFocus'] as Map<String, Object?>? ?? const {}),
  );
}