ImageListWarning.fromJson constructor

ImageListWarning.fromJson(
  1. Map _json
)

Implementation

ImageListWarning.fromJson(core.Map _json) {
  if (_json.containsKey("code")) {
    code = _json["code"];
  }
  if (_json.containsKey("data")) {
    data = (_json["data"] as core.List)
        .map<ImageListWarningData>(
            (value) => new ImageListWarningData.fromJson(value))
        .toList();
  }
  if (_json.containsKey("message")) {
    message = _json["message"];
  }
}