SecurityStateExplanation.fromJson constructor

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

Implementation

factory SecurityStateExplanation.fromJson(Map<String, dynamic> json) {
  return SecurityStateExplanation(
    securityState: SecurityState.fromJson(json['securityState'] as String),
    title: json['title'] as String,
    summary: json['summary'] as String,
    description: json['description'] as String,
    mixedContentType:
        MixedContentType.fromJson(json['mixedContentType'] as String),
    certificate:
        (json['certificate'] as List).map((e) => e as String).toList(),
    recommendations: json.containsKey('recommendations')
        ? (json['recommendations'] as List).map((e) => e as String).toList()
        : null,
  );
}