Version OK
This commit is contained in:
@@ -8,7 +8,7 @@ part of 'evenement_model.dart';
|
||||
|
||||
EvenementModel _$EvenementModelFromJson(Map<String, dynamic> json) =>
|
||||
EvenementModel(
|
||||
id: json['id'] as String?,
|
||||
id: (json['id'] as num?)?.toInt(),
|
||||
titre: json['titre'] as String,
|
||||
description: json['description'] as String?,
|
||||
dateDebut: DateTime.parse(json['dateDebut'] as String),
|
||||
@@ -23,9 +23,9 @@ EvenementModel _$EvenementModelFromJson(Map<String, dynamic> json) =>
|
||||
StatutEvenement.planifie,
|
||||
maxParticipants: (json['maxParticipants'] as num?)?.toInt(),
|
||||
participantsActuels: (json['participantsActuels'] as num?)?.toInt() ?? 0,
|
||||
organisateurId: json['organisateurId'] as String?,
|
||||
organisateurId: (json['organisateurId'] as num?)?.toInt(),
|
||||
organisateurNom: json['organisateurNom'] as String?,
|
||||
organisationId: json['organisationId'] as String?,
|
||||
organisationId: (json['organisationId'] as num?)?.toInt(),
|
||||
organisationNom: json['organisationNom'] as String?,
|
||||
priorite:
|
||||
$enumDecodeNullable(_$PrioriteEvenementEnumMap, json['priorite']) ??
|
||||
|
||||
Reference in New Issue
Block a user