modulo_model.dart 451 B

123456789101112131415161718192021222324252627
  1. import 'basico_model.dart';
  2. class Modulo {
  3. String? id;
  4. String? nombre;
  5. DateTime? creado;
  6. Modulo({
  7. this.id,
  8. this.nombre,
  9. this.creado,
  10. });
  11. Map<String, dynamic> toJson() {
  12. return {
  13. 'id': id,
  14. 'nombre': nombre,
  15. };
  16. }
  17. Modulo.fromJson(Map<String, dynamic> json) {
  18. id = Basico.parseString(json['id']);
  19. nombre = Basico.parseString(json['nombre']);
  20. creado = Basico.parseDate(json['creado']);
  21. }
  22. }