didvan-app/lib/models/didvan_voice_model.dart

26 lines
541 B
Dart

class DidvanVoiceModel {
final int id;
final String title;
final String file;
final String image;
final String publishedAt;
DidvanVoiceModel({
required this.id,
required this.title,
required this.file,
required this.image,
required this.publishedAt,
});
factory DidvanVoiceModel.fromJson(Map<String, dynamic> json) {
return DidvanVoiceModel(
id: json['id'],
title: json['title'],
file: json['file'],
image: json['image'],
publishedAt: json['publishedAt'],
);
}
}