forked from eatvio/eatvio_app
16 lines
446 B
Dart
16 lines
446 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'location_model.freezed.dart';
|
|
|
|
part 'location_model.g.dart';
|
|
|
|
@freezed
|
|
abstract class LocationModel with _$LocationModel {
|
|
const factory LocationModel({
|
|
required List<String> locations,
|
|
@JsonKey(name: 'response_body') required String responseBody,
|
|
}) = _LocationModel;
|
|
|
|
factory LocationModel.fromJson(Map<String, Object?> json) => _$LocationModelFromJson(json);
|
|
}
|