JsonSchemaVariant.fromJson constructor

JsonSchemaVariant.fromJson(
  1. Map json_
)

Implementation

JsonSchemaVariant.fromJson(core.Map json_)
    : this(
        discriminant: json_.containsKey('discriminant')
            ? json_['discriminant'] as core.String
            : null,
        map: json_.containsKey('map')
            ? (json_['map'] as core.List)
                .map((value) => JsonSchemaVariantMap.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );