toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final encryptionKey = this.encryptionKey;
  final environment = this.environment;
  final name = this.name;
  final serviceRole = this.serviceRole;
  final source = this.source;
  final vpcConfig = this.vpcConfig;
  return {
    if (encryptionKey != null) 'EncryptionKey': encryptionKey,
    if (environment != null) 'Environment': environment,
    if (name != null) 'Name': name,
    if (serviceRole != null) 'ServiceRole': serviceRole,
    if (source != null) 'Source': source,
    if (vpcConfig != null) 'VpcConfig': vpcConfig,
  };
}