CreativeCorrections.fromJson constructor

CreativeCorrections.fromJson(
  1. Map _json
)

Implementation

CreativeCorrections.fromJson(core.Map _json) {
  if (_json.containsKey("contexts")) {
    contexts = (_json["contexts"] as core.List)
        .map<CreativeCorrectionsContexts>(
            (value) => new CreativeCorrectionsContexts.fromJson(value))
        .toList();
  }
  if (_json.containsKey("details")) {
    details = (_json["details"] as core.List).cast<core.String>();
  }
  if (_json.containsKey("reason")) {
    reason = _json["reason"];
  }
}