Ruleset.fromJson constructor

Ruleset.fromJson(
  1. Map _json
)

Implementation

Ruleset.fromJson(core.Map _json)
    : this(
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        metadata: _json.containsKey('metadata')
            ? Metadata.fromJson(
                _json['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        source: _json.containsKey('source')
            ? Source.fromJson(
                _json['source'] as core.Map<core.String, core.dynamic>)
            : null,
      );