Documentation

Mistake on this page? Email us

Policy adapter Policy Adapter

Hierarchy

Index

Methods

assignDefined

  • assignDefined(target: any, source: any): any
  • Assign properties of the source object to the target, ignoring values that are undefined on the source

    Parameters

    • target: any

      target object

    • source: any

      source object

    Returns any

fromApi

  • fromApi(data: any, instance?: any): Policy
  • fromApi

    Parameters

    • data: any

      data

    • Optional instance: any

      instance

    Returns Policy

map

  • map(from: apiPolicy): Policy
  • Parameters

    • from: apiPolicy

    Returns Policy