Statement.fromJson constructor

Statement.fromJson(
  1. Map json_
)

Implementation

Statement.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,
      );