feature(registration): fix location model

This commit is contained in:
mso7nueh
2024-07-29 11:20:01 +03:00
parent 818721a993
commit f96c6b53d6
4 changed files with 20 additions and 19 deletions

View File

@@ -1,15 +1,15 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'location_model.g.dart';
part 'location_model.freezed.dart';
@freezed
class LocationModel with _$LocationModel {
const factory LocationModel({
required Map<String, dynamic> locations,
@JsonKey(name: 'response_body')
required String responseBody,
}) = _LocationModel;
required List<String> locations,
@JsonKey(name: 'response_body') required String responseBody,
}) = _LocationModel;
factory LocationModel.fromJson(Map<String, Object?> json) => _$LocationModelFromJson(json);
}
}