toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'userId': userId,
    'userName': userName,
    'age': age,
    'gender': gender?.parseText(),
    'userScore': userScore,
    'custom': custom,
  };
}