class UniqueIDModel { String id; bool error = false; UniqueIDModel({this.id}); UniqueIDModel.fromJson(Map json) { id = json['id']; } UniqueIDModel.error() { error = true; } Map toJson() { final Map data = new Map(); data['id'] = this.id; return data; } }