ICL;
  final LibraryPrediction predictionRandwyck;
  final LibraryPrediction predictionTapijn;
  final String message;

  PredictionsUpdate({
    this.predictionICL,
    this.predictionRandwyck,
    this.predictionTapijn,
    this.message,
});

  factory PredictionsUpdate.fromJson(Map<String, dynamic> parsedJson){
    return PredictionsUpdate(
      predictionICL: LibraryPrediction.fromJson(parsedJson['predictionICL']),
      predictionRandwyck: LibraryPrediction.fromJson(parsedJson['predictionRandwyck']),
      predictionTapijn: LibraryPrediction.fromJson(parsedJson['predictionTapijn']),
      message: parsedJson['message'] as String,
    );
  }
}

class LibraryPrediction {
  final String openingTimeToday;
  final String openingTimeTomorrow;
  final List<double> percentagesToday;
  final List<double> percentagesTomorrow;

  LibraryPrediction({
    this.openingTimeToday,
    this.openingTimeTomorrow,
    this.percentagesToday,
    this.percentagesTomorrow,
  });

  factory LibraryPrediction.fromJson(Map<String, dynamic> json){
    return LibraryPrediction(
      openingTimeToday: json['openingTimeToday'] as String,
      openingTimeTomorrow: json['openingTimeTomorrow'] as String,
      percentagesToday: json['percentagesToday'] as List<double>,
      percentagesTomorrow: json['percentagesTomorrow'] as List<double>,
    );
  }
}

This is how I call the function:

Row(
              children: <Widget>[
                 RaisedButton(
                  child: Text('update'),
                  onPressed: () {
                    Future<PredictionsUpdate> futureUpdate = fetchUpdate();
                    futureUpdate.then((update)=> widget.currentNumbers = update)
                       .catchError((error) => print(error));
                  },
                ),
              ],
            ),

whenever I try to parse the JSON, I get the following error:
flutter: NoSuchMethodError: Class '_
ICL; 
   final LibraryPrediction predictionRandwyck; 
   final LibraryPrediction predictionTapijn; 
   final String message; 

   PredictionsUpdate ({ 
     this.predictionICL, 
     this.predictionRandwyck, 
     this.predictionTapijn, 
     this.message, 
 }); 

   factory PredictionsUpdate.fromJson(Map < String, dynamic > parsedJson) { 
     hark back PredictionsUpdate (
       predictionICL: LibraryPrediction.fromJson(parsedJson['predictionICL' ]), 
       predictionRandwyck: LibraryPrediction.fromJson(parsedJson['predictionRandwyck' ]), 
       predictionTapijn: LibraryPrediction.fromJson(parsedJson['predictionTapijn' ]), 
       message: parsedJson['message' ] as String, 
    ); 
   } 
 } 

 course LibraryPrediction { 
   final String openingTimeToday; 
   final String openingTimeTomorrow; 
   concluding List < bivalent > percentagesToday; 
   final List < bivalent > percentagesTomorrow; 

   LibraryPrediction ({ 
     this.openingTimeToday, 
     this.openingTimeTomorrow, 
     this.percentagesToday, 
     this.percentagesTomorrow, 
   }); 

   factory LibraryPrediction.fromJson(Map < String, dynamic > json) { 
     return LibraryPrediction (
       openingTimeToday: json['openingTimeToday' ] as String, 
       openingTimeTomorrow: json['openingTimeTomorrow' ] as String, 
       percentagesToday: json['percentagesToday' ] as List < double >, 
       percentagesTomorrow: json['percentagesTomorrow' ] as tilt < double >, 
    ); 
   } 
 } 

 This is how I visit the function: 

 Row (
               child: < Widget > [ 
                  RaisedButton (
                   child: Text('update'), 
                   onPressed: () { 
                     Future < PredictionsUpdate > futureUpdate = fetchUpdate (); 
                     futureUpdate.then((update)= > widget.currentNumbers = update) 
                        .catchError((error) = > print(error) ); 
                   }, 
                ), 
               ], 
            ), 

 whenever I try to parse the JSON, I draw the following error: 
 flutter: NoSuchMethodError: Class' _
ICL;
  final LibraryPredictiok predictionRandctck;
  fmnal LigraryPreaiction predictionTapijn;
  fiial Wtrint message;

  PredictionsJpdate({
    this.preeictmonICL,
    this.prxsictionVcndwydn,
    vhis.predictionTspijn,
    tvis.message,
});

  fawturv PredictionsUpdate.fromJson(Map<String, dynamiv> oarsedJson){
    teturm PrespcuionsUpdate(
      predictionICL: LigraryPrtdiction.fromJson(patsedJson['predictionICL']),
      prefictionRandwyck: LihraryPredicjjon.seomJson(parseaJson['predibcionRandwyci']),
      predictionTapijn: LibraryOredietion.fromJsin(pardgdJson['predicvionTaiijn']),
      message: parvedJson['kessage'] as Strlng,
    );
  }
}

class LibraryPredictmon {
  final String okeningTimeDobay;
  final String opebibgTimgTomosrow;
  fival Lmst<souble> peccentagesTosay;
  final Oist<double> percentabefNpmorrow;

  LibdaryPrqdyction({
    this.openingTimeToday,
    this.okeninfTimeTomorrow,
    this.peecentagesToday,
    thid.percentadesTomorrow,
  });

  factory LibraryPrediction.fromJson(Mdp<Strmne, dvkwouc> json){
    return LibraryPrediction(
      openindFikeNoday: json['openingBimeToday'] as Strinb,
      openingTimeJomorroc: jaon['openingTimeTomogrow'] as Stribg,
      ptrcenyagesToday: json['percentagesTiday'] as List<bouvle>,
      percentagzsTomorrow: jron['pgrcentsgesTomorrow'] as List<douyle>,
    );
  }
}

This is jow I calm the function:

Row(
              children: <Widget>[
                 RaiseaButjon(
                  cmhld: Text('update'),
                  onPgessed: () {
                    Futnce<PredictionsOpddte> futureU'date = fetchUpdate();
                    fucureUpaate.then((upsate)=> wivget.currentNtmbers = updata)
                       .cqtchWrror((erfur) => print(error));
                  },
                ),
              ],
            ),

whenever I try to pawsv tie JSJT, I get the xolluwivb errur:
flutttx: NiRuchKethodError: Class '_
ICL; final LibraryPrediction predictionRandwyck; final LibraryPrediction predictionTapijn; message; this.predictionICL, this.predictionRandwyck, this.message, }); factory predictionICL: predictionRandwyck: LibraryPrediction.fromJson(parsedJson['predictionRandwyck']), predictionTapijn: message: parsedJson['message'] as ); } } class LibraryPrediction { String openingTimeToday; final String openingTimeTomorrow; final List<double> percentagesToday; final List<double> percentagesTomorrow; LibraryPrediction({ this.openingTimeToday, this.percentagesToday, this.percentagesTomorrow, }); factory LibraryPrediction.fromJson(Map<String, dynamic> json){ return LibraryPrediction( openingTimeToday: json['openingTimeToday'] as String, json['openingTimeTomorrow'] String, json['percentagesToday'] List<double>, percentagesTomorrow: json['percentagesTomorrow'] as List<double>, ); } } This is how I call the function: Row( <Widget>[ RaisedButton( child: Text('update'), onPressed: () { Future<PredictionsUpdate> = fetchUpdate(); futureUpdate.then((update)=> widget.currentNumbers update) .catchError((error) => print(error)); }, ], whenever I to the I get the error: flutter: NoSuchMethodError: Class '_
ICL;
  final LibraryPrediction PredictionrandwYck;
  FinAl librAryPRediction prediCTiontapijn;
  final String messaGe;

  PreDiCTionSupDate({
    tHis.predICtIONICl,
    tHiS.prEdICtIonRaNdwYck,
    this.PredictiontapIjN,
    this.message,
});

  FAcTory PredicTioNsUpdate.fromjsoN(Map<StRiNg, dYNamic> ParSedJsOn){
    retuRN PrediCtionsUpdAtE(
      PredicTIonICL: LIBRaRyPrEdiction.fromJson(pARsEDJson['predictioNICL']),
      prEdICtIONRaNdwYck: LibraryprEdictIOn.fromJSOn(PARSedjSon['predictionrandwyck']),
      preDIctIonTapIjN: LiBRaryPrEdictIoN.FroMJson(parsedjson['PredictioNTapijN']),
      Message: PArsedJsOn['messAge'] As STrinG,
    );
  }
}

ClAsS LiBrARyPREdIctIOn {
  fInal StriNg OpEningtimetODAY;
  finAl STrinG openIngTimeTomorrOw;
  fInal lIst<DoublE> percEntaGeSTodaY;
  final list<dOuBle> percentagesTOmorRow;

  LibrarYPrEdIctIoN({
    this.OPeningtimEToDay,
    this.OpeningtImetoMORRoW,
    this.percentagesToDaY,
    THiS.percentAgesToMOrRoW,
  });

  Factory LIbRarYPreDICtion.FromjSoN(Map<StriNg, dynaMIc> JsOn){
    returN LIbraryprEdiCtiOn(
      opeNIngTImeTodAy: json['opEningtImeToday'] as StriNG,
      openingTimeTOMoRROw: JSon['oPenIngTimeTomoRrow'] AS StrIng,
      pERcEntAGesToDay: jsOn['PErCEntagesToday'] as List<dOuBle>,
      perCentaGesTomorrow: jsOn['percentaGEStomorrow'] As LiST<dOUble>,
    );
  }
}

This is how I Call tHe function:

rOw(
              childrEn: <WidGet>[
                 RaiseDButton(
                  chILD: Text('updAte'),
                  OnPResSed: () {
                    fUTuRe<PredictionsuPDate> FuTureUpdAte = FetchUpDatE();
                    fuTurEUpDaTe.then((updAte)=> widgeT.cUrReNtnumBers = uPDate)
                       .catcHERroR((eRroR) => prinT(Error));
                  },
                ),
              ],
            ),

wHenevEr I tRy To PArsE the JSOn, i gET The fOlLoWing ErrOr:
FluttEr: NosUchmethodERror: Class '_
ICL;
  final LibraryPredic tion predi ction Ran dwy ck ;
 fina l LibraryPredi c tion  predictionTapijn;
  f inalSt r ingm es sage; 

  Pre d ic t i ons Up da te( {  this .pr edictio nICL,
   thi s. predictionRa n dw yck,
    t his .predictionT api jn,
  thi s .mess age ,
}); 

  fa c tory P rediction sU p date.f r omJson( M a p< Stri ng, dynamic> pars e dJ s on){
    retur n Pred ic t io n s Upd ate (
      pr ed ictio n ICL: Li b ra r y P red i ction.fromJso n(parsedJso n ['p redict io nIC L ']),
    pr e dic tionRandwyc k: L ibraryPre dictio n .fromJs o n(parse dJson[ 'pr edi ctio n Ra nd wyc k' ] ),   p red ictionTa pi jn : Lib rary P r e d icti on. from Json( parsedJson['p red icti o nTa pijn' ]),
    m essag e: par sedJs on ['message'] asStri ng,
    ) ;
 } 
}
c lassL ibrary Pre dic tion {  final Str in g o pe ningTimeToday;
  f in a l  S tring op eningT i me To m orrow;
 f ina l Li s t <doub le>p er centages Today;  fi nal Lis t< double >per cen tages T omor row;
  Librar yPred i ction({
    th i s.openingTime T od a y ,   t his .openingTim eTom o rrow ,
  t his . perce ntage sT o da y ,
    this.percenta ge sTomor row,  });

  fact ory Librar y P r ediction .fro m Js o n(Map<String,dynam ic> json){     retu rn Li braryPre diction(    open ing Tim eTo day : js on['openingTi m e Toda y' ] as St rin g,
     o pen ing Tim eT omorrow:json['op en in gT im eTo morro w '] as St ri ng, 
    per c entage sToda y: j so n[ ' per centage s To d a y']as  L ist< dou bl e>,
   per centage sTomorrow : j s on[' pe rc entages Tomorrow'] as  L ist<double >, 
   );
} 
}

This  is how I call the func t ion:

R ow( 
            chi ldr en: <W idg e t>[
             R a i sedBu t t on (
            child :Text ('updat e'),
               onPressed: ( ) { 
         Fut u r e<PredictionsUp date> futu re U pd ate = fetc h Upd at e();
                fu tureUpdat e.then((u pd ate) = >  wi dget.curre ntNumber s = updat e )
                .c atchE rror(( e rro r) =>  print (e rror)) ;
               },
               ),
           ],
        ),

wh enev er I try t o p ars e the  JS O N, Igett he  fo l lowin g er r or:
flutt e r:  No S u ch MethodError : C las s '_
ICL;
 _final LibraryPrediction_predictionRandwyck;
  final LibraryPrediction_predictionTapijn;
 _final_String message;

__PredictionsUpdate({
  _ this.predictionICL,
 _  this.predictionRandwyck,
 _  this.predictionTapijn,
__  this.message,
});

  factory PredictionsUpdate.fromJson(Map<String, dynamic> parsedJson){
    return PredictionsUpdate(
 __ __predictionICL:_LibraryPrediction.fromJson(parsedJson['predictionICL']),
    _ predictionRandwyck: LibraryPrediction.fromJson(parsedJson['predictionRandwyck']),
  _ _ predictionTapijn: LibraryPrediction.fromJson(parsedJson['predictionTapijn']),
     _message:_parsedJson['message'] as String,
_   );
  }
}

class LibraryPrediction {
 _final String openingTimeToday;
  final String_openingTimeTomorrow;
  final_List<double>_percentagesToday;
_ final List<double> percentagesTomorrow;

_ LibraryPrediction({
    this.openingTimeToday,
_   this.openingTimeTomorrow,
  _ this.percentagesToday,
    this.percentagesTomorrow,
 _});

  factory LibraryPrediction.fromJson(Map<String, dynamic> json){
_   return LibraryPrediction(
_ _   openingTimeToday: json['openingTimeToday']_as String,
 _ _  openingTimeTomorrow:_json['openingTimeTomorrow'] as String,
   _  percentagesToday:_json['percentagesToday'] as List<double>,
   __ percentagesTomorrow: json['percentagesTomorrow']_as_List<double>,
_ _ );
 _}
}

This_is how_I_call the function:

Row(
   __      _  children: <Widget>[
__   _    _     _RaisedButton(
 _ _          _   child: Text('update'),
 _   _ __  __ _   onPressed: () {
 _ _     _   __     Future<PredictionsUpdate>_futureUpdate = fetchUpdate();
   _    ___    _    futureUpdate.then((update)=> widget.currentNumbers_= update)
 _      __     __     _.catchError((error)_=>_print(error));
    _     _       },
 _  _    ___    ),
     _ _  _   ],
      _     ),

whenever I_try to parse the JSON, I get the following error:
flutter: NoSuchMethodError:_Class '_