toJson method
Implementation
Map<String, Object?> toJson() {
var key = this.key;
var value = this.value;
var id = this.id;
var lastModifiedDate = this.lastModifiedDate;
var createdDate = this.createdDate;
var links = this.links;
final json = <String, Object?>{};
json[r'key'] = key;
json[r'value'] = value;
json[r'id'] = id;
json[r'lastModifiedDate'] = lastModifiedDate.toIso8601String();
json[r'createdDate'] = createdDate.toIso8601String();
if (links != null) {
json[r'_links'] = links.toJson();
}
return json;
}