TwkApiV2DemoJsonImpl class

Implemented types

Constructors

TwkApiV2DemoJsonImpl({String jsonPath = 'packages/tawakkalna_sdk_flutter/assets/mock_profile1.0.2.json', AssetBundle? assetBundle})

Properties

assetBundle → AssetBundle?
final
hashCode → int
The hash code for this object.
no setterinherited
jsonPath → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateToken() → Future<Map<String, dynamic>>
Generate authentication token (V2) Corresponds to: window.TWK.V2.generateToken()
override
getUserFamilyMembers({int? minAge, int? maxAge, int? gender}) → Future<Map<String, dynamic>>
Get user's family members with optional filters - V2 version Corresponds to: window.TWK.V2.getUserFamilyMembers(minage, maxage, gender)
override
getUserFullName() → Future<Map<String, String>>
Get user's full name (Arabic and English) - V2 version Corresponds to: window.TWK.V2.getUserFullName()
override
getUserNationality() → Future<Map<String, dynamic>>
Get user's nationality name - V2 version Corresponds to: window.TWK.V2.getUserNationality()
override
getUserSponsors({int? minAge, int? maxAge, int? gender}) → Future<Map<String, dynamic>>
Get user's sponsors with optional filters - V2 version Corresponds to: window.TWK.V2.getUserSponsors(minage, maxage, gender)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited