Celebrity.fromJson constructor
Implementation
factory Celebrity.fromJson(Map<String, dynamic> json) {
return Celebrity(
face: json['Face'] != null
? ComparedFace.fromJson(json['Face'] as Map<String, dynamic>)
: null,
id: json['Id'] as String?,
matchConfidence: json['MatchConfidence'] as double?,
name: json['Name'] as String?,
urls: (json['Urls'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}