AppRestrictionsSchemaRestriction.fromJson constructor

AppRestrictionsSchemaRestriction.fromJson(
  1. Map json_
)

Implementation

AppRestrictionsSchemaRestriction.fromJson(core.Map json_)
    : this(
        defaultValue: json_.containsKey('defaultValue')
            ? AppRestrictionsSchemaRestrictionRestrictionValue.fromJson(
                json_['defaultValue'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_['description'] as core.String?,
        entry: (json_['entry'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        entryValue: (json_['entryValue'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        key: json_['key'] as core.String?,
        nestedRestriction: (json_['nestedRestriction'] as core.List?)
            ?.map((value) => AppRestrictionsSchemaRestriction.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        restrictionType: json_['restrictionType'] as core.String?,
        title: json_['title'] as core.String?,
      );