Added Streams to TourRepository
This commit is contained in:
18
lib/dto/image_note_response.dart
Normal file
18
lib/dto/image_note_response.dart
Normal file
@ -0,0 +1,18 @@
|
||||
import 'note.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'image_note_response.g.dart';
|
||||
|
||||
@JsonSerializable(fieldRename: FieldRename.snake)
|
||||
class ImageNoteDTO {
|
||||
final String url;
|
||||
final String oid;
|
||||
final String name;
|
||||
|
||||
ImageNoteDTO({required this.url, required this.oid, required this.name});
|
||||
|
||||
factory ImageNoteDTO.fromJson(Map<String, dynamic> json) =>
|
||||
_$ImageNoteDTOFromJson(json);
|
||||
|
||||
Map<dynamic, dynamic> toJson() => _$ImageNoteDTOToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user