policyDetails static method

JsonMap policyDetails(
  1. String fromMode,
  2. String? fromHolder,
  3. String toMode,
  4. String? toHolder,
  5. String reason,
)

The audit details of a policy switch of one agent, as the server writes them (policyAttrs of services/server/internal/agents/app/policy.go, 10 14).

Implementation

static JsonMap policyDetails(
  String fromMode,
  String? fromHolder,
  String toMode,
  String? toHolder,
  String reason,
) => {
  'from_billing_mode': fromMode,
  'to_billing_mode': toMode,
  'reason': reason,
  'from_credential_holder_id': ?fromHolder,
  'to_credential_holder_id': ?toHolder,
};