UserProfile constructor

UserProfile(
  1. Map<String, dynamic> input
)

Implementation

UserProfile(Map<String, dynamic> input) {
  try {
    anonymousId = input['anonymousId'];
    externalId = input['externalId'];
    isDeleted = input['isDeleted'];
    subscriberStatus = input['subscriberStatus'] != null ? PNSubscriberStatus.fromValue(input['subscriberStatus']) : null;
    token = input['token'];
  } catch (e) {
    dt.log("Error processing UserProfile ${e.toString()}");
  }
}