getAliases static method

List<String>? getAliases(
  1. JsonProperty? jsonProperty
)

Implementation

static List<String>? getAliases(JsonProperty? jsonProperty) =>
    jsonProperty != null &&
            jsonProperty.name is Iterable &&
            jsonProperty.name.length > 1
        ? jsonProperty.name
            .where((x) => x != getPrimaryName(jsonProperty))
            .toList()
            .cast<String>()
        : [];