HorizontalHeaderLookAndFeel.fromJson constructor

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

Implementation

factory HorizontalHeaderLookAndFeel.fromJson(Map<String, Object?> json) {
  return HorizontalHeaderLookAndFeel(
    backgroundColor: json[r'backgroundColor'] as String? ?? '',
    button: json[r'button'] != null
        ? ButtonLookAndFeel.fromJson(json[r'button']! as Map<String, Object?>)
        : null,
    primaryNavigation: TopNavigationLookAndFeel.fromJson(
        json[r'primaryNavigation'] as Map<String, Object?>? ?? const {}),
    secondaryNavigation: json[r'secondaryNavigation'] != null
        ? NavigationLookAndFeel.fromJson(
            json[r'secondaryNavigation']! as Map<String, Object?>)
        : null,
    search: json[r'search'] != null
        ? SearchFieldLookAndFeel.fromJson(
            json[r'search']! as Map<String, Object?>)
        : null,
  );
}