copyWith method

LinkedInUserModel copyWith({
  1. String? name,
  2. String? familyName,
  3. String? givenName,
  4. String? email,
  5. String? picture,
  6. String? sub,
  7. LinkedInLocale? locale,
  8. LinkedInAccessToken? accessToken,
})

Implementation

LinkedInUserModel copyWith({
  String? name,
  String? familyName,
  String? givenName,
  String? email,
  String? picture,
  String? sub,
  LinkedInLocale? locale,
  LinkedInAccessToken? accessToken,
}) {
  return LinkedInUserModel(
    name: name ?? this.name,
    familyName: familyName ?? this.familyName,
    givenName: givenName ?? this.givenName,
    email: email ?? this.email,
    picture: picture ?? this.picture,
    sub: sub ?? this.sub,
    locale: locale ?? this.locale,
    accessToken: accessToken ?? this.accessToken,
  );
}