Serialize to json.
Map<String, dynamic> toJson() => Serializer.moveFromExtraDataToRoot( _$UserToJson(this), );