toJson method
Converts a StorageVersionStatus instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempCommonEncodingVersion = commonEncodingVersion;
final tempConditions = conditions;
final tempStorageVersions = storageVersions;
if (tempCommonEncodingVersion != null) {
jsonData['commonEncodingVersion'] = tempCommonEncodingVersion;
}
if (tempConditions != null) {
jsonData['conditions'] =
tempConditions.map((e) => e.toJson()).toList(growable: false);
}
if (tempStorageVersions != null) {
jsonData['storageVersions'] =
tempStorageVersions.map((e) => e.toJson()).toList(growable: false);
}
return jsonData;
}