OAuth2Google.fromMap constructor
Implementation
factory OAuth2Google.fromMap(
Map<String, dynamic> map,
) {
return OAuth2Google(
$id: map['\$id'].toString(),
enabled: map['enabled'],
clientId: map['clientId'].toString(),
clientSecret: map['clientSecret'].toString(),
prompt: List<enums.OAuth2GooglePrompt>.from(
map['prompt'].map(
(p) =>
enums.OAuth2GooglePrompt.values.firstWhere((e) => e.value == p),
),
),
);
}