toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() {
final age = this.age;
final createdBefore = this.createdBefore;
final customTimeBefore = this.customTimeBefore;
final daysSinceCustomTime = this.daysSinceCustomTime;
final daysSinceNoncurrentTime = this.daysSinceNoncurrentTime;
final isLive = this.isLive;
final matchesPattern = this.matchesPattern;
final matchesPrefix = this.matchesPrefix;
final matchesStorageClass = this.matchesStorageClass;
final matchesSuffix = this.matchesSuffix;
final noncurrentTimeBefore = this.noncurrentTimeBefore;
final numNewerVersions = this.numNewerVersions;
return {
'age': ?age,
'createdBefore': ?createdBefore == null
? null
: "${createdBefore.year.toString().padLeft(4, '0')}-${createdBefore.month.toString().padLeft(2, '0')}-${createdBefore.day.toString().padLeft(2, '0')}",
'customTimeBefore': ?customTimeBefore == null
? null
: "${customTimeBefore.year.toString().padLeft(4, '0')}-${customTimeBefore.month.toString().padLeft(2, '0')}-${customTimeBefore.day.toString().padLeft(2, '0')}",
'daysSinceCustomTime': ?daysSinceCustomTime,
'daysSinceNoncurrentTime': ?daysSinceNoncurrentTime,
'isLive': ?isLive,
'matchesPattern': ?matchesPattern,
'matchesPrefix': ?matchesPrefix,
'matchesStorageClass': ?matchesStorageClass,
'matchesSuffix': ?matchesSuffix,
'noncurrentTimeBefore': ?noncurrentTimeBefore == null
? null
: "${noncurrentTimeBefore.year.toString().padLeft(4, '0')}-${noncurrentTimeBefore.month.toString().padLeft(2, '0')}-${noncurrentTimeBefore.day.toString().padLeft(2, '0')}",
'numNewerVersions': ?numNewerVersions,
};
}