listFromJson static method

List<ResourceOwnerRoleEnum?>? listFromJson(
  1. dynamic json, {
  2. bool? emptyIsNull,
  3. bool? growable,
})

Implementation

static List<ResourceOwnerRoleEnum?>? listFromJson(
  dynamic json, {
  bool? emptyIsNull,
  bool? growable,
}) =>
    json is List && json.isNotEmpty
        ? json
            .map(ResourceOwnerRoleEnum.fromJson)
            .toList(growable: true == growable)
        : true == emptyIsNull
            ? null
            : <ResourceOwnerRoleEnum>[];