TopNavigationLookAndFeel.fromJson constructor

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

Implementation

factory TopNavigationLookAndFeel.fromJson(Map<String, Object?> json) {
  return TopNavigationLookAndFeel(
    color: json[r'color'] as String?,
    highlightColor: json[r'highlightColor'] as String? ?? '',
    hoverOrFocus: json[r'hoverOrFocus'] != null
        ? TopNavigationLookAndFeelHoverOrFocus.fromJson(
            json[r'hoverOrFocus']! as Map<String, Object?>)
        : null,
  );
}