toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
    "created": created?.toIso8601String(),
    "descripcion": descripcion,
    "id": id,
    "updated": updated?.toIso8601String(),
    "servicio_id": servicioId,
    "preferencias": preferencias == null ? [] : List<dynamic>.from(preferencias!.map((x) => x.toMap())),
};