Serializes this user to JSON.
Map<String, dynamic> toJson() => {'id': id, 'email': email, 'name': name};