Json2DartCommand class
Methods
-
addSubcommand(Command command)
→ void
-
Adds Command as a subcommand of this.
inherited
-
appendMapper(String pathPage, String apiName, dynamic response)
→ void
-
-
createDataDataSourceTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
createDataModelBody(String pathPage, String pageName, String apiName, dynamic body, [bool isMultipart = false, List<String> paramPath = const []])
→ void
-
-
createDataModelBodyTest(String pathTestPage, String featureName, String pageName, String apiName, dynamic jsonBody, String bodyVariable, bool isBodyList)
→ void
-
-
createDataModelResponse(String pathPage, String pageName, String apiName, dynamic response)
→ void
-
-
createDataModelResponseTest(String pathTestPage, String featureName, String pageName, String apiName, dynamic jsonResponse, dynamic responseVariable, bool isResponseList)
→ void
-
-
createDataRepositoryTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
createDomainEntity(String pathPage, String pageName, String apiName, dynamic response)
→ void
-
-
createDomainEntityTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
createDomainRepositoryTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
createDomainUseCaseTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
createJsonResponseTest(String pathTestPage, String featureName, String pageName, String apiName, String jsonResponse)
→ String
-
-
createMapper(String pathPage, Map map)
→ void
-
-
createMapperTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
createModelUnitTest({required String pathTestPage, required String appsName, required String featureName, required String pageName, required String pathPage, required String apiName, required dynamic jsonBody, required dynamic jsonResponse, required dynamic body, required dynamic response, required String method, required List<String> paramPath, required String? cacheStrategy, required int? ttl, required bool? keepExpiredCache})
→ Map<String, String>
-
-
createPresentationBlocTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
createPresentationCubitTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
createPresentationPageTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
createPresentationWidgetTest(String pathTestPage, String featureName, String pageName, List<Map<String, String>> resultModelUnitTest)
→ void
-
-
formatDateString(String input)
→ String
-
-
fromMap(String apiClassName, Map map, String suffix, List<ModelClassName> listClassName, String parent)
→ String
-
-
getBodyClass(String suffix, String name, String parent, Map? map, [bool root = false, bool isMultipart = false, List<String> paramPath = const []])
→ String
-
-
getBodyVariableUnitTest(String apiName, dynamic body, String parent, List<String> paramPath)
→ String
-
-
getChangeDateTimeFromMapJson(String json)
→ String
-
-
getChangeDateTimeFromMapJsonBody(String json)
→ String
-
-
getConstOrFinalValue(String value)
→ String
-
-
getEntityClass(String suffix, String name, String parent, Map? map, [bool root = false])
→ String
-
-
getExtensionMapper(String suffix, String name, String parent, Map? map, String? parentList, bool fromList, [bool root = false])
→ String
-
-
getMapFromJson(String? path, {required void callbackJsonIsList(), String warningMessage = 'Format json not valid!'})
→ dynamic
-
-
getResponseClass(String suffix, String name, String parent, Map? map, [bool root = false])
→ String
-
-
getResponseVariableUnitTest(String apiName, dynamic body, String parent, {String suffix = 'Response', String variable = 'response'})
→ String
-
-
getTypeVariable(String key, dynamic value, String suffix, List<ModelClassName> listClassName, String parent)
→ String
-
-
getValueUnitTest(String key, dynamic value, String suffix, String parent, String asImport, [String? parentList])
→ String
-
-
getVariableFromMap(String key, dynamic value, String suffix, List<ModelClassName> listClassName, String parent)
→ String
-
-
getVariableToMap(String key, dynamic value)
→ String
-
-
getVariableToMapBody(String key, dynamic value)
→ String
-
-
handleApi({required String featureName, required String featurePath, required String pageName, required String pathPage, required String apiName, required dynamic body, required dynamic response, required String? method, required String pathUrl, required List<String> paramPath, required String? header, required bool isBodyList, required bool isResponseList, required String? cacheStrategy, required int? ttl, required bool? keepExpiredCache, required String? appsName})
→ Future<void>
-
-
handleFeature(String featurePath, String featureName, dynamic featureValue, String? appsName)
→ Future<void>
-
-
handlePage({required String featureName, required String featurePath, required String pageName, required dynamic pageValue, required String? appsName})
→ Future<void>
-
-
handleUnitTest({required String pathTestPage, required String featureName, required String pageName, required Map pageValue, required List<Map<String, String>> resultModelUnitTest})
→ void
-
-
init()
→ void
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
printUsage()
→ void
-
Prints the usage information for this command.
inherited
-
processJson(Map<String, dynamic> jsonObject)
→ Map<String, dynamic>
-
-
removeAllRelatedApiPage(String pathPage, String pageName, Map pageValue, bool isReplace)
→ void
-
-
removeAllRelatedApiPageUnitTest(String featureName, String pageName)
→ void
-
-
removeDir(String path)
→ void
-
-
removeFile(String path)
→ void
-
-
run()
→ void
-
Runs this command.
override
-
setConstractor(String apiClassName, Map map, [bool isMultipart = false, List<String> paramPath = const []])
→ String
-
-
setConstractorBody(String apiClassName, Map map, [bool isMultipart = false, List<String> paramPath = const []])
→ String
-
-
setPropsEquatable(Map map, [bool isMultipart = false, List<String> paramPath = const []])
→ String
-
-
setTypeData(Map map, String suffix, List<ModelClassName> listClassName, String parent, [bool isMultipart = false, List<String> paramPath = const []])
→ String
-
-
setValueVariableMapper(String key, dynamic value, TypeMapper typeMapper)
→ String
-
-
setVariableEntity(Map map, TypeMapper typeMapper)
→ String
-
-
toMap(Map map)
→ String
-
-
toMapBody(Map map)
→ String
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
usageException(String message)
→ Never
-
Throws a UsageException with
message
.
inherited