hasParentReference static method

bool hasParentReference(
  1. JsonProperty? jsonProperty
)

name is referencing Parent object itself OR it's fields, by default this means that ignoreForSerialization is treated as true

Implementation

static bool hasParentReference(JsonProperty? jsonProperty) =>
    jsonProperty != null &&
    (jsonProperty.name != null &&
        jsonProperty.name.toString().contains(parentReference));