// To parse this JSON data, do // // final apiConstantsResponse = apiConstantsResponseFromJson(jsonString); import 'dart:convert'; List apiConstantsResponseFromJson(List json) => List.from( json.map((x) => ApiConstantsResponse.fromJson(x))); String apiConstantsResponseToJson(List data) => json.encode(List.from(data.map((x) => x.toJson()))); class ApiConstantsResponse { String? api; int? interval; String? method; String? module; ApiConstantsResponse({ this.api, this.interval, this.method, this.module, }); factory ApiConstantsResponse.fromJson(Map json) => ApiConstantsResponse( api: json["api"], interval: json["interval"], method: json["method"], module: json["module"], ); Map toJson() => { "api": api, "interval": interval, "method": method, "module": module, }; } enum Method { POST } final methodValues = EnumValues({"POST": Method.POST}); enum Module { CONTACTSAPI, EVENTAPIS } final moduleValues = EnumValues( {"contactsapi": Module.CONTACTSAPI, "eventapis": Module.EVENTAPIS}); class EnumValues { Map map; late Map reverseMap; EnumValues(this.map); Map get reverse { reverseMap = map.map((k, v) => MapEntry(v, k)); return reverseMap; } }