fromJson static method

PKPaymentPass fromJson(
  1. dynamic json
)

Implementation

static PKPaymentPass fromJson(dynamic json) {
  if (json != null && json is Map<String, dynamic>) {
    return PKPaymentPass(json['AuthenticationToken'] as String?,
        json['Description'] as String?,
        json['DeviceAccountIdentifier'] as String?,
        json['DeviceAccountNumberSuffix'] as String?,
        json['DeviceName'] as String?,
        json['IsProxy'] as bool?);
  }
  else {
    return PKPaymentPass(null,null,null,null,null,null);
  }
}