Subscriber.fromMap constructor
Subscriber.fromMap(
- Map<String, dynamic> map
)
Implementation
factory Subscriber.fromMap(Map<String, dynamic> map) {
return Subscriber(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
targetId: map['targetId'].toString(),
target: Target.fromMap(map['target']),
userId: map['userId'].toString(),
userName: map['userName'].toString(),
topicId: map['topicId'].toString(),
providerType: map['providerType'].toString(),
);
}