Scope.fromJson constructor

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

Implementation

factory Scope.fromJson(Map<String, dynamic> json) {
  return Scope(
    complianceResourceId: json['ComplianceResourceId'] as String?,
    complianceResourceTypes: (json['ComplianceResourceTypes'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    tagKey: json['TagKey'] as String?,
    tagValue: json['TagValue'] as String?,
  );
}