DetailsResponse.fromJson constructor

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

Implementation

factory DetailsResponse.fromJson(Map<String, dynamic> json) {
  return DetailsResponse(
    status: json['status'],
    htmlAttributions: json['html_attributions'] != null
        ? (json['html_attributions'] as List<dynamic>).cast<String>()
        : null,
    result: json['result'] != null
        ? DetailsResult.fromJson(json['result'])
        : null,
  );
}