StartRemediationExecutionResponse.fromJson constructor

StartRemediationExecutionResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory StartRemediationExecutionResponse.fromJson(
    Map<String, dynamic> json) {
  return StartRemediationExecutionResponse(
    failedItems: (json['FailedItems'] as List?)
        ?.whereNotNull()
        .map((e) => ResourceKey.fromJson(e as Map<String, dynamic>))
        .toList(),
    failureMessage: json['FailureMessage'] as String?,
  );
}