GetCorsPolicyOutput.fromJson constructor

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

Implementation

factory GetCorsPolicyOutput.fromJson(Map<String, dynamic> json) {
  return GetCorsPolicyOutput(
    corsPolicy: (json['CorsPolicy'] as List)
        .whereNotNull()
        .map((e) => CorsRule.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}