// 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 data) => EvenementStruct( nid: castToType(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(data['horecagelegenheidid']), inhoud: data['inhoud'] as String?, url: data['url'] as String?, ); static EvenementStruct? maybeFromMap(dynamic data) => data is Map ? EvenementStruct.fromMap(data.cast()) : null; Map 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 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 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 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, );