toJson method
Implementation
@override
Object toJson() => {
if (mountPath.isNotDefault) 'mountPath': mountPath,
if (projectId.isNotDefault) 'projectId': projectId,
if (secret.isNotDefault) 'secret': secret,
if (versions.isNotDefault)
'versions': [for (final i in versions) i.toJson()],
};