GetCelebrityInfoResponse.fromJson constructor

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

Implementation

factory GetCelebrityInfoResponse.fromJson(Map<String, dynamic> json) {
  return GetCelebrityInfoResponse(
    name: json['Name'] as String?,
    urls: (json['Urls'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}