fromMap static method

UIEventAttribution? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible UIEventAttribution instance from a Map value.

Implementation

static UIEventAttribution? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = UIEventAttribution(
    destinationURL: WebUri(map['destinationURL']),
    purchaser: map['purchaser'],
    sourceDescription: map['sourceDescription'],
    sourceIdentifier: map['sourceIdentifier'],
  );
  return instance;
}