Target.fromMap constructor
Implementation
factory Target.fromMap(Map<String, dynamic> map) {
return Target(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
name: map['name'].toString(),
userId: map['userId'].toString(),
providerId: map['providerId']?.toString(),
providerType: map['providerType'].toString(),
identifier: map['identifier'].toString(),
expired: map['expired'],
);
}