Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Unable to find getter for List<Map<String, String>> #182

@MRezaNasirloo

Description

@MRezaNasirloo

Issue Summary

Stag fails to find the getter for a list of maps,

Reproduction Steps

@UseStag
@Generated("com.robohorse.robopojogenerator")
data class RequestBodyTransaction(
        @field:SerializedName("restrictions")
        var listOfMaps: List<Map<String, String>> = emptyList()
)

Expected Behavior

To work and parse a list of maps

Actual Behavior

A Compile error as below

RequestBodyTransaction.java:16: error: Unable to find getter for variable: restrictions
    private java.util.List<? extends java.util.Map<java.lang.String, java.lang.String>> restrictions;
                                                                                        ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions