dart format
This commit is contained in:
@@ -6,7 +6,6 @@ import 'package:http/http.dart' as http;
|
||||
import '../../mhsl_api.dart';
|
||||
import 'add_feedback_params.dart';
|
||||
|
||||
|
||||
class AddFeedback extends MhslApi<void> {
|
||||
AddFeedbackParams params;
|
||||
AddFeedback(this.params) : super('server/feedback');
|
||||
@@ -15,5 +14,6 @@ class AddFeedback extends MhslApi<void> {
|
||||
void assemble(String raw) {}
|
||||
|
||||
@override
|
||||
Future<Response>? request(Uri uri) => http.post(uri, body: jsonEncode(params.toJson()));
|
||||
Future<Response>? request(Uri uri) =>
|
||||
http.post(uri, body: jsonEncode(params.toJson()));
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ class AddFeedbackParams {
|
||||
String? screenshot;
|
||||
int appVersion;
|
||||
|
||||
|
||||
AddFeedbackParams({
|
||||
required this.user,
|
||||
required this.feedback,
|
||||
@@ -17,6 +16,7 @@ class AddFeedbackParams {
|
||||
required this.appVersion,
|
||||
});
|
||||
|
||||
factory AddFeedbackParams.fromJson(Map<String, dynamic> json) => _$AddFeedbackParamsFromJson(json);
|
||||
factory AddFeedbackParams.fromJson(Map<String, dynamic> json) =>
|
||||
_$AddFeedbackParamsFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$AddFeedbackParamsToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user