Oauth2ConsentList.fromMap constructor

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

Implementation

factory Oauth2ConsentList.fromMap(
  Map<String, dynamic> map,
) {
  map = {
    'total': 0,
    'consents': [],
    ...map,
  };

  return Oauth2ConsentList(
    total: map['total'],
    consents: List<Oauth2Consent>.from(
      map['consents'].map((p) => Oauth2Consent.fromMap(p)),
    ),
  );
}