UsageReportParameters.fromJson constructor

UsageReportParameters.fromJson(
  1. Map _json
)

Implementation

UsageReportParameters.fromJson(core.Map _json) {
  if (_json.containsKey("boolValue")) {
    boolValue = _json["boolValue"];
  }
  if (_json.containsKey("datetimeValue")) {
    datetimeValue = core.DateTime.parse(_json["datetimeValue"]);
  }
  if (_json.containsKey("intValue")) {
    intValue = _json["intValue"];
  }
  if (_json.containsKey("msgValue")) {
    msgValue = (_json["msgValue"] as core.List)
        .map<core.Map<core.String, core.Object>>(
            (value) => (value as core.Map).cast<core.String, core.Object>())
        .toList();
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("stringValue")) {
    stringValue = _json["stringValue"];
  }
}