AzureSourceDetails.fromJson constructor

AzureSourceDetails.fromJson(
  1. Map json_
)

Implementation

AzureSourceDetails.fromJson(core.Map json_)
    : this(
        azureLocation: json_.containsKey('azureLocation')
            ? json_['azureLocation'] as core.String
            : null,
        clientSecretCreds: json_.containsKey('clientSecretCreds')
            ? ClientSecretCredentials.fromJson(json_['clientSecretCreds']
                as core.Map<core.String, core.dynamic>)
            : null,
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        migrationResourcesUserTags:
            json_.containsKey('migrationResourcesUserTags')
                ? (json_['migrationResourcesUserTags']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      value as core.String,
                    ),
                  )
                : null,
        resourceGroupId: json_.containsKey('resourceGroupId')
            ? json_['resourceGroupId'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        subscriptionId: json_.containsKey('subscriptionId')
            ? json_['subscriptionId'] as core.String
            : null,
      );