forked from eatvio/eatvio_app
feature(registration): fix location model
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user