class MyModel { String? message; bool? theBool; dynamic data; MyModel({this.message, this.theBool, this.data}); MyModel.fromJson(Map json) { message = json['message']; theBool = json['bool']; data = json['data']; } Map toJson() { final Map data = {}; data['message'] = message; data['bool'] = theBool; data['data'] = this.data; return data; } }