copyWith method

SdkUserModel copyWith({
  1. String? accessToken,
  2. String? orderAccessToken,
  3. String? tokenType,
  4. String? refreshToken,
  5. num? expiresIn,
  6. String? scope,
  7. String? id,
  8. String? orderUserId,
  9. String? accountId,
  10. List<Profile>? profiles,
  11. String? version,
  12. List<String>? roles,
  13. String? fullName,
  14. String? phoneNumber,
  15. String? userProfileId,
  16. String? clientId,
  17. 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,
    );