toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'created'] = this.created.toUtc().toIso8601String();
json[r'updated'] = this.updated.toUtc().toIso8601String();
json[r'entity_id'] = this.entityId;
json[r'name'] = this.name;
json[r'items'] = this.items;
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.criteriaUrl != null) {
json[r'criteria_url'] = this.criteriaUrl;
} else {
json[r'criteria_url'] = null;
}
if (this.criteriaText != null) {
json[r'criteria_text'] = this.criteriaText;
} else {
json[r'criteria_text'] = null;
}
if (this.expiresAmount != null) {
json[r'expires_amount'] = this.expiresAmount;
} else {
json[r'expires_amount'] = null;
}
if (this.expiresDuration != null) {
json[r'expires_duration'] = this.expiresDuration;
} else {
json[r'expires_duration'] = null;
}
if (this.iconImage != null) {
json[r'icon_image'] = this.iconImage;
} else {
json[r'icon_image'] = null;
}
if (this.thumbnailImage != null) {
json[r'thumbnail_image'] = this.thumbnailImage;
} else {
json[r'thumbnail_image'] = null;
}
if (this.backgroundImage != null) {
json[r'background_image'] = this.backgroundImage;
} else {
json[r'background_image'] = null;
}
if (this.credentialType != null) {
json[r'credential_type'] = this.credentialType;
} else {
json[r'credential_type'] = null;
}
if (this.tags != null) {
json[r'tags'] = this.tags;
} else {
json[r'tags'] = null;
}
if (this.public != null) {
json[r'public'] = this.public;
} else {
json[r'public'] = null;
}
if (this.metadata != null) {
json[r'metadata'] = this.metadata;
} else {
json[r'metadata'] = null;
}
if (this.htmlTemplate != null) {
json[r'html_template'] = this.htmlTemplate;
} else {
json[r'html_template'] = null;
}
if (this.cssTemplate != null) {
json[r'css_template'] = this.cssTemplate;
} else {
json[r'css_template'] = null;
}
if (this.issuingSignal != null) {
json[r'issuing_signal'] = this.issuingSignal;
} else {
json[r'issuing_signal'] = null;
}
if (this.issuer != null) {
json[r'issuer'] = this.issuer;
} else {
json[r'issuer'] = null;
}
return json;
}