App.fromMap constructor
Implementation
factory App.fromMap(Map<String, dynamic> map) {
return App(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
name: map['name'].toString(),
description: map['description'].toString(),
clientUri: map['clientUri'].toString(),
logoUri: map['logoUri'].toString(),
privacyPolicyUrl: map['privacyPolicyUrl'].toString(),
termsUrl: map['termsUrl'].toString(),
contacts: List.from(map['contacts'] ?? []),
tagline: map['tagline'].toString(),
tags: List.from(map['tags'] ?? []),
labels: List.from(map['labels'] ?? []),
images: List.from(map['images'] ?? []),
supportUrl: map['supportUrl'].toString(),
dataDeletionUrl: map['dataDeletionUrl'].toString(),
redirectUris: List.from(map['redirectUris'] ?? []),
postLogoutRedirectUris: List.from(map['postLogoutRedirectUris'] ?? []),
enabled: map['enabled'],
type: map['type'].toString(),
deviceFlow: map['deviceFlow'],
teamId: map['teamId'].toString(),
userId: map['userId'].toString(),
installationScopes: List.from(map['installationScopes'] ?? []),
installationRedirectUrl: map['installationRedirectUrl'].toString(),
secrets:
List<AppSecret>.from(map['secrets'].map((p) => AppSecret.fromMap(p))),
);
}