Initial draft
This commit is contained in:
18
lib/dto/note_template.dart
Normal file
18
lib/dto/note_template.dart
Normal file
@ -0,0 +1,18 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'note_template.g.dart';
|
||||
|
||||
@JsonSerializable(fieldRename: FieldRename.snake)
|
||||
class NoteTemplateDTO {
|
||||
NoteTemplateDTO(
|
||||
{required this.language,
|
||||
required this.title,
|
||||
required this.note});
|
||||
|
||||
final String note;
|
||||
final String language;
|
||||
final String title;
|
||||
|
||||
factory NoteTemplateDTO.fromJson(Map<String, dynamic> json) => _$NoteTemplateDTOFromJson(json);
|
||||
Map<dynamic, dynamic> toJson() => _$NoteTemplateDTOToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user