AdFrameStatus.fromJson constructor

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

Implementation

factory AdFrameStatus.fromJson(Map<String, dynamic> json) {
  return AdFrameStatus(
    adFrameType: AdFrameType.fromJson(json['adFrameType'] as String),
    explanations:
        json.containsKey('explanations')
            ? (json['explanations'] as List)
                .map((e) => AdFrameExplanation.fromJson(e as String))
                .toList()
            : null,
  );
}