source property

ProfileExtra get source

Implementation

Map<String, dynamic> get source {
  final k = BotProfileKeys.i;
  return {
    if (id.isNotEmpty) k.id: id,
    if (name.isNotEmpty) k.name: name,
    if (photo != null) k.photo: photo,
    if (age > 0) k.age: age,
    if (gender.isNotEmpty) k.gender: gender,
    if (country.isNotEmpty) k.country: country,
    if (continent.isNotEmpty) k.continent: continent,
    if (speakingStyle.isNotEmpty) k.speakingStyle: speakingStyle,
    if (languages.isNotEmpty) k.languages: languages,
    if (interests.isNotEmpty) k.interests: interests,
    if (personalityTraits.isNotEmpty) k.personalityTraits: personalityTraits,
    if (favoriteTopics.isNotEmpty) k.favoriteTopics: favoriteTopics,
    if (extra.isNotEmpty) k.extra: extra,
  };
}