StatementTemplate.fromJson constructor

StatementTemplate.fromJson(
  1. Map json_
)

Implementation

StatementTemplate.fromJson(core.Map json_)
    : this(
        relation: json_.containsKey('relation')
            ? json_['relation'] as core.String
            : null,
        source: json_.containsKey('source')
            ? Asset.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
        target: json_.containsKey('target')
            ? Asset.fromJson(
                json_['target'] as core.Map<core.String, core.dynamic>)
            : null,
      );