toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'id': this.id,
'gender': getGenderIndex(gender),
'name': this.name,
'credit_id': this.creditId,
'profile_path': AssetResolver.getPathFromUrl(this.profilePath),
};
}