Website.fromJson constructor

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

Implementation

factory Website.fromJson(Map<String, dynamic> json) => Website(
      (json['url'] as String?) ?? '',
      label: _stringToWebsiteLabel[json['label'] as String? ?? ''] ??
          WebsiteLabel.homepage,
      customLabel: (json['customLabel'] as String?) ?? '',
    );