copyWith method
SdkUserModel
copyWith({
- String? accessToken,
- String? orderAccessToken,
- String? tokenType,
- String? refreshToken,
- num? expiresIn,
- String? scope,
- String? id,
- String? orderUserId,
- String? accountId,
- List<
Profile> ? profiles, - String? version,
- List<
String> ? roles, - String? fullName,
- String? phoneNumber,
- String? userProfileId,
- String? clientId,
- String? clientSecret,
Implementation
SdkUserModel copyWith({
String? accessToken,
String? orderAccessToken,
String? tokenType,
String? refreshToken,
num? expiresIn,
String? scope,
String? id,
String? orderUserId,
String? accountId,
List<Profile>? profiles,
String? version,
List<String>? roles,
String? fullName,
String? phoneNumber,
String? userProfileId,
String? clientId,
String? clientSecret,
}) =>
SdkUserModel(
accessToken: accessToken ?? this.accessToken,
orderAccessToken: orderAccessToken ?? this.orderAccessToken,
tokenType: tokenType ?? this.tokenType,
refreshToken: refreshToken ?? this.refreshToken,
expiresIn: expiresIn ?? this.expiresIn,
scope: scope ?? this.scope,
id: id ?? this.id,
orderUserId: orderUserId ?? this.orderUserId,
accountId: accountId ?? this.accountId,
profiles: profiles ?? this.profiles,
version: version ?? this.version,
roles: roles ?? this.roles,
fullName: fullName ?? this.fullName,
phoneNumber: phoneNumber ?? this.phoneNumber,
userProfileId: userProfileId ?? this.userProfileId,
clientId: clientId ?? this.clientId,
clientSecret: clientSecret ?? this.clientSecret,
);