toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final fileSystemId = this.fileSystemId;
  final authorizationConfig = this.authorizationConfig;
  final rootDirectory = this.rootDirectory;
  final transitEncryption = this.transitEncryption;
  final transitEncryptionPort = this.transitEncryptionPort;
  return {
    'fileSystemId': fileSystemId,
    if (authorizationConfig != null)
      'authorizationConfig': authorizationConfig,
    if (rootDirectory != null) 'rootDirectory': rootDirectory,
    if (transitEncryption != null)
      'transitEncryption': transitEncryption.toValue(),
    if (transitEncryptionPort != null)
      'transitEncryptionPort': transitEncryptionPort,
  };
}