TrustedAdvisorCheckDescription.fromJson constructor

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

Implementation

factory TrustedAdvisorCheckDescription.fromJson(Map<String, dynamic> json) {
  return TrustedAdvisorCheckDescription(
    category: json['category'] as String,
    description: json['description'] as String,
    id: json['id'] as String,
    metadata: (json['metadata'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    name: json['name'] as String,
  );
}