WebEntity.fromJson constructor

WebEntity.fromJson(
  1. Map json_
)

Implementation

WebEntity.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        entityId: json_.containsKey('entityId')
            ? json_['entityId'] as core.String
            : null,
        score: json_.containsKey('score')
            ? (json_['score'] as core.num).toDouble()
            : null,
      );