Entity.fromJson constructor

Entity.fromJson(
  1. Map json_
)

Implementation

Entity.fromJson(core.Map json_)
    : this(
        entityId: json_.containsKey('entityId')
            ? json_['entityId'] as core.String
            : null,
        preferredTerm: json_.containsKey('preferredTerm')
            ? json_['preferredTerm'] as core.String
            : null,
        vocabularyCodes: json_.containsKey('vocabularyCodes')
            ? (json_['vocabularyCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );