Key.fromMap constructor
Implementation
factory Key.fromMap(Map<String, dynamic> map) {
return Key(
$id: map['\$id'],
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
name: map['name'],
secret: map['secret'],
expire: map['expire'],
platforms: List<String>.from(map['platforms']),
userId: map['userId'],
teamId: map['teamId'],
key: map['key'],
registration: map['registration'],
);
}