| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416 |
- // ignore_for_file: unnecessary_getters_setters
- import '/backend/schema/util/schema_util.dart';
- import 'index.dart';
- import '/flutter_flow/flutter_flow_util.dart';
- class EvenementStruct extends BaseStruct {
- EvenementStruct({
- int? nid,
- String? titel,
- DateTime? datum,
- String? logo,
- String? adres,
- String? plaats,
- String? categorie,
- String? horecagelegenheid,
- int? horecagelegenheidid,
- String? inhoud,
- String? url,
- }) : _nid = nid,
- _titel = titel,
- _datum = datum,
- _logo = logo,
- _adres = adres,
- _plaats = plaats,
- _categorie = categorie,
- _horecagelegenheid = horecagelegenheid,
- _horecagelegenheidid = horecagelegenheidid,
- _inhoud = inhoud,
- _url = url;
- // "nid" field.
- int? _nid;
- int get nid => _nid ?? 0;
- set nid(int? val) {
- _nid = val;
- debugLog();
- }
- void incrementNid(int amount) => nid = nid + amount;
- bool hasNid() => _nid != null;
- // "titel" field.
- String? _titel;
- String get titel => _titel ?? '';
- set titel(String? val) {
- _titel = val;
- debugLog();
- }
- bool hasTitel() => _titel != null;
- // "datum" field.
- DateTime? _datum;
- DateTime? get datum => _datum;
- set datum(DateTime? val) {
- _datum = val;
- debugLog();
- }
- bool hasDatum() => _datum != null;
- // "logo" field.
- String? _logo;
- String get logo => _logo ?? '';
- set logo(String? val) {
- _logo = val;
- debugLog();
- }
- bool hasLogo() => _logo != null;
- // "adres" field.
- String? _adres;
- String get adres => _adres ?? '';
- set adres(String? val) {
- _adres = val;
- debugLog();
- }
- bool hasAdres() => _adres != null;
- // "plaats" field.
- String? _plaats;
- String get plaats => _plaats ?? '';
- set plaats(String? val) {
- _plaats = val;
- debugLog();
- }
- bool hasPlaats() => _plaats != null;
- // "categorie" field.
- String? _categorie;
- String get categorie => _categorie ?? '';
- set categorie(String? val) {
- _categorie = val;
- debugLog();
- }
- bool hasCategorie() => _categorie != null;
- // "horecagelegenheid" field.
- String? _horecagelegenheid;
- String get horecagelegenheid => _horecagelegenheid ?? '';
- set horecagelegenheid(String? val) {
- _horecagelegenheid = val;
- debugLog();
- }
- bool hasHorecagelegenheid() => _horecagelegenheid != null;
- // "horecagelegenheidid" field.
- int? _horecagelegenheidid;
- int get horecagelegenheidid => _horecagelegenheidid ?? 0;
- set horecagelegenheidid(int? val) {
- _horecagelegenheidid = val;
- debugLog();
- }
- void incrementHorecagelegenheidid(int amount) =>
- horecagelegenheidid = horecagelegenheidid + amount;
- bool hasHorecagelegenheidid() => _horecagelegenheidid != null;
- // "inhoud" field.
- String? _inhoud;
- String get inhoud => _inhoud ?? '';
- set inhoud(String? val) {
- _inhoud = val;
- debugLog();
- }
- bool hasInhoud() => _inhoud != null;
- // "url" field.
- String? _url;
- String get url => _url ?? '';
- set url(String? val) {
- _url = val;
- debugLog();
- }
- bool hasUrl() => _url != null;
- static EvenementStruct fromMap(Map<String, dynamic> data) => EvenementStruct(
- nid: castToType<int>(data['nid']),
- titel: data['titel'] as String?,
- datum: data['datum'] as DateTime?,
- logo: data['logo'] as String?,
- adres: data['adres'] as String?,
- plaats: data['plaats'] as String?,
- categorie: data['categorie'] as String?,
- horecagelegenheid: data['horecagelegenheid'] as String?,
- horecagelegenheidid: castToType<int>(data['horecagelegenheidid']),
- inhoud: data['inhoud'] as String?,
- url: data['url'] as String?,
- );
- static EvenementStruct? maybeFromMap(dynamic data) => data is Map
- ? EvenementStruct.fromMap(data.cast<String, dynamic>())
- : null;
- Map<String, dynamic> toMap() => {
- 'nid': _nid,
- 'titel': _titel,
- 'datum': _datum,
- 'logo': _logo,
- 'adres': _adres,
- 'plaats': _plaats,
- 'categorie': _categorie,
- 'horecagelegenheid': _horecagelegenheid,
- 'horecagelegenheidid': _horecagelegenheidid,
- 'inhoud': _inhoud,
- 'url': _url,
- }.withoutNulls;
- @override
- Map<String, dynamic> toSerializableMap() => {
- 'nid': serializeParam(
- _nid,
- ParamType.int,
- ),
- 'titel': serializeParam(
- _titel,
- ParamType.String,
- ),
- 'datum': serializeParam(
- _datum,
- ParamType.DateTime,
- ),
- 'logo': serializeParam(
- _logo,
- ParamType.String,
- ),
- 'adres': serializeParam(
- _adres,
- ParamType.String,
- ),
- 'plaats': serializeParam(
- _plaats,
- ParamType.String,
- ),
- 'categorie': serializeParam(
- _categorie,
- ParamType.String,
- ),
- 'horecagelegenheid': serializeParam(
- _horecagelegenheid,
- ParamType.String,
- ),
- 'horecagelegenheidid': serializeParam(
- _horecagelegenheidid,
- ParamType.int,
- ),
- 'inhoud': serializeParam(
- _inhoud,
- ParamType.String,
- ),
- 'url': serializeParam(
- _url,
- ParamType.String,
- ),
- }.withoutNulls;
- static EvenementStruct fromSerializableMap(Map<String, dynamic> data) =>
- EvenementStruct(
- nid: deserializeParam(
- data['nid'],
- ParamType.int,
- false,
- ),
- titel: deserializeParam(
- data['titel'],
- ParamType.String,
- false,
- ),
- datum: deserializeParam(
- data['datum'],
- ParamType.DateTime,
- false,
- ),
- logo: deserializeParam(
- data['logo'],
- ParamType.String,
- false,
- ),
- adres: deserializeParam(
- data['adres'],
- ParamType.String,
- false,
- ),
- plaats: deserializeParam(
- data['plaats'],
- ParamType.String,
- false,
- ),
- categorie: deserializeParam(
- data['categorie'],
- ParamType.String,
- false,
- ),
- horecagelegenheid: deserializeParam(
- data['horecagelegenheid'],
- ParamType.String,
- false,
- ),
- horecagelegenheidid: deserializeParam(
- data['horecagelegenheidid'],
- ParamType.int,
- false,
- ),
- inhoud: deserializeParam(
- data['inhoud'],
- ParamType.String,
- false,
- ),
- url: deserializeParam(
- data['url'],
- ParamType.String,
- false,
- ),
- );
- @override
- Map<String, DebugDataField> toDebugSerializableMap() => {
- 'nid': debugSerializeParam(
- nid,
- ParamType.int,
- name: 'int',
- nullable: false,
- ),
- 'titel': debugSerializeParam(
- titel,
- ParamType.String,
- name: 'String',
- nullable: false,
- ),
- 'datum': debugSerializeParam(
- _datum,
- ParamType.DateTime,
- name: 'DateTime',
- nullable: true,
- ),
- 'logo': debugSerializeParam(
- logo,
- ParamType.String,
- name: 'String',
- nullable: false,
- ),
- 'adres': debugSerializeParam(
- adres,
- ParamType.String,
- name: 'String',
- nullable: false,
- ),
- 'plaats': debugSerializeParam(
- plaats,
- ParamType.String,
- name: 'String',
- nullable: false,
- ),
- 'categorie': debugSerializeParam(
- categorie,
- ParamType.String,
- name: 'String',
- nullable: false,
- ),
- 'horecagelegenheid': debugSerializeParam(
- horecagelegenheid,
- ParamType.String,
- name: 'String',
- nullable: false,
- ),
- 'horecagelegenheidid': debugSerializeParam(
- horecagelegenheidid,
- ParamType.int,
- name: 'int',
- nullable: false,
- ),
- 'inhoud': debugSerializeParam(
- inhoud,
- ParamType.String,
- name: 'String',
- nullable: false,
- ),
- 'url': debugSerializeParam(
- url,
- ParamType.String,
- name: 'String',
- nullable: false,
- ),
- };
- @override
- String toString() => 'EvenementStruct(${toMap()})';
- @override
- bool operator ==(Object other) {
- return other is EvenementStruct &&
- nid == other.nid &&
- titel == other.titel &&
- datum == other.datum &&
- logo == other.logo &&
- adres == other.adres &&
- plaats == other.plaats &&
- categorie == other.categorie &&
- horecagelegenheid == other.horecagelegenheid &&
- horecagelegenheidid == other.horecagelegenheidid &&
- inhoud == other.inhoud &&
- url == other.url;
- }
- @override
- int get hashCode => const ListEquality().hash([
- nid,
- titel,
- datum,
- logo,
- adres,
- plaats,
- categorie,
- horecagelegenheid,
- horecagelegenheidid,
- inhoud,
- url
- ]);
- }
- EvenementStruct createEvenementStruct({
- int? nid,
- String? titel,
- DateTime? datum,
- String? logo,
- String? adres,
- String? plaats,
- String? categorie,
- String? horecagelegenheid,
- int? horecagelegenheidid,
- String? inhoud,
- String? url,
- }) =>
- EvenementStruct(
- nid: nid,
- titel: titel,
- datum: datum,
- logo: logo,
- adres: adres,
- plaats: plaats,
- categorie: categorie,
- horecagelegenheid: horecagelegenheid,
- horecagelegenheidid: horecagelegenheidid,
- inhoud: inhoud,
- url: url,
- );
|