fromJson static method

AndroidIdentifiers? fromJson(
  1. Map? json
)

Implementation

static AndroidIdentifiers? fromJson(Map? json) {
  if (json == null) return null;
  return AndroidIdentifiers(
    lookupKey: JsonHelpers.decode<String>(json['lookupKey']),
    rawContacts:
        (json['rawContacts'] as List?)
            ?.map((e) => RawContact.fromJson(e as Map?))
            .whereType<RawContact>()
            .toList() ??
        const [],
  );
}