Token.fromMap constructor

Token.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Token.fromMap(Map<String, dynamic> map) {
  return Token(
    $id: map['\$id'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    userId: map['userId'].toString(),
    secret: map['secret'].toString(),
    expire: map['expire'].toString(),
  );
}