HeaderLookAndFeel.fromJson constructor

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

Implementation

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