toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final certificate = this.certificate;
  final imagePullCredentialsType = this.imagePullCredentialsType;
  final registryCredential = this.registryCredential;
  final type = this.type;
  return {
    if (certificate != null) 'Certificate': certificate,
    if (imagePullCredentialsType != null)
      'ImagePullCredentialsType': imagePullCredentialsType,
    if (registryCredential != null) 'RegistryCredential': registryCredential,
    if (type != null) 'Type': type,
  };
}