getBackupPlanFromJSON method
Future<GetBackupPlanFromJSONOutput>
getBackupPlanFromJSON({
- required String backupPlanTemplateJson,
Returns a valid JSON document specifying a backup plan or an error.
May throw LimitExceededException. May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ServiceUnavailableException. May throw InvalidRequestException.
Parameter backupPlanTemplateJson
:
A customer-supplied backup plan document in JSON format.
Implementation
Future<GetBackupPlanFromJSONOutput> getBackupPlanFromJSON({
required String backupPlanTemplateJson,
}) async {
ArgumentError.checkNotNull(
backupPlanTemplateJson, 'backupPlanTemplateJson');
final $payload = <String, dynamic>{
'BackupPlanTemplateJson': backupPlanTemplateJson,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/backup/template/json/toPlan',
exceptionFnMap: _exceptionFns,
);
return GetBackupPlanFromJSONOutput.fromJson(response);
}