ScpActionDefinition.fromJson constructor

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

Implementation

factory ScpActionDefinition.fromJson(Map<String, dynamic> json) {
  return ScpActionDefinition(
    policyId: json['PolicyId'] as String,
    targetIds: (json['TargetIds'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}