Oauth2Consent.fromMap constructor

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

Implementation

factory Oauth2Consent.fromMap(Map<String, dynamic> map) {
  return Oauth2Consent(
    $id: map['\$id'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    userId: map['userId'].toString(),
    appId: map['appId'].toString(),
    cimdUrl: map['cimdUrl'].toString(),
    scopes: List.from(map['scopes'] ?? []),
    resources: List.from(map['resources'] ?? []),
    authorizationDetails: map['authorizationDetails'].toString(),
    expire: map['expire'].toString(),
  );
}