parent
04a1baf442
commit
10f3122ca6
@ -1,24 +0,0 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'fall_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class FallModel {
|
||||
final String? userName;
|
||||
final String? tel;
|
||||
final String? address;
|
||||
final num? lon;
|
||||
final num? lat;
|
||||
final int? type;
|
||||
factory FallModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$FallModelFromJson(json);
|
||||
|
||||
const FallModel({
|
||||
this.userName,
|
||||
this.tel,
|
||||
this.address,
|
||||
this.lon,
|
||||
this.lat,
|
||||
this.type,
|
||||
});
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'fall_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
FallModel _$FallModelFromJson(Map<String, dynamic> json) => FallModel(
|
||||
userName: json['userName'] as String?,
|
||||
tel: json['tel'] as String?,
|
||||
address: json['address'] as String?,
|
||||
lon: json['lon'] as num?,
|
||||
lat: json['lat'] as num?,
|
||||
type: json['type'] as int?,
|
||||
);
|
Loading…
Reference in new issue