toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'user_id': userId,
  'count': count,
  if (firstName != null) 'first_name': firstName,
  if (lastName != null) 'last_name': lastName,
  'email': email,
};