ClientAuthContext.fromMap constructor

ClientAuthContext.fromMap(
  1. Map map
)

ClientAuthContext.fromMap(Map map) is a constructor that takes a Map as an argument and creates a new instance of ClientAuthContext using the values from the Map.

Implementation

ClientAuthContext.fromMap(Map map)
    : this(
          authId: map['authID'],
          agreements: map['agreements'] != null
              ? ClientAgreements.fromMap(map['agreements'])
              : null,
          attributes: map['attributes'] != null
              ? Map<String, Object>.from(map['attributes'])
              : null);