toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.avgDurationMs != null) {
json[r'avgDurationMs'] = this.avgDurationMs;
} else {
json[r'avgDurationMs'] = null;
}
if (this.createdAt != null) {
json[r'createdAt'] = this.createdAt;
} else {
json[r'createdAt'] = null;
}
if (this.endpoint != null) {
json[r'endpoint'] = this.endpoint;
} else {
json[r'endpoint'] = null;
}
if (this.envCount != null) {
json[r'envCount'] = this.envCount;
} else {
json[r'envCount'] = null;
}
if (this.environment != null) {
json[r'environment'] = this.environment;
} else {
json[r'environment'] = null;
}
if (this.errors7d != null) {
json[r'errors7d'] = this.errors7d;
} else {
json[r'errors7d'] = null;
}
if (this.image != null) {
json[r'image'] = this.image;
} else {
json[r'image'] = null;
}
if (this.invocations7d != null) {
json[r'invocations7d'] = this.invocations7d;
} else {
json[r'invocations7d'] = null;
}
if (this.lastDeployedAt != null) {
json[r'lastDeployedAt'] = this.lastDeployedAt;
} else {
json[r'lastDeployedAt'] = null;
}
if (this.memoryLimit != null) {
json[r'memoryLimit'] = this.memoryLimit;
} else {
json[r'memoryLimit'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.namespace != null) {
json[r'namespace'] = this.namespace;
} else {
json[r'namespace'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.successRate != null) {
json[r'successRate'] = this.successRate;
} else {
json[r'successRate'] = null;
}
if (this.target != null) {
json[r'target'] = this.target;
} else {
json[r'target'] = null;
}
if (this.timeoutSec != null) {
json[r'timeoutSec'] = this.timeoutSec;
} else {
json[r'timeoutSec'] = null;
}
return json;
}