JsonSchemaVariant.fromJson constructor

JsonSchemaVariant.fromJson(
  1. Map json_
)

Implementation

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