| | |
| | | SimpleLocation? location, |
| | | String? createTime, |
| | | String? targetDesc, |
| | | int? targetUid |
| | | }) { |
| | | _portrait = portrait; |
| | | _from = from; |
| | |
| | | _location = location; |
| | | _createTime = createTime; |
| | | _targetDesc = targetDesc; |
| | | _targetUid = targetUid; |
| | | } |
| | | |
| | | SosRecordModel.fromJson(dynamic json) { |
| | |
| | | _from = json['from']; |
| | | _desc = json['desc']; |
| | | _phone = json['phone']; |
| | | _location =SimpleLocation.fromJson(json['location']); |
| | | _location = SimpleLocation.fromJson(json['location']); |
| | | _createTime = json['createTime']; |
| | | _targetDesc = json['targetDesc']; |
| | | _targetUid =int.parse( json['targetUid']); |
| | | } |
| | | |
| | | String? _portrait; |
| | |
| | | SimpleLocation? _location; |
| | | String? _createTime; |
| | | String? _targetDesc; |
| | | int? _targetUid; |
| | | |
| | | String? get portrait => _portrait; |
| | | |
| | |
| | | |
| | | String? get targetDesc => _targetDesc; |
| | | |
| | | int? get targetUid => _targetUid; |
| | | |
| | | Map<String?, dynamic> toJson() { |
| | | final map = <String?, dynamic>{}; |
| | | map['portrait'] = _portrait; |
| | |
| | | } |
| | | map['createTime'] = _createTime; |
| | | map['targetDesc'] = _targetDesc; |
| | | map['targetUid'] = _targetUid; |
| | | return map; |
| | | } |
| | | } |