MaliciousEntity.fromJson constructor

MaliciousEntity.fromJson(
  1. Map _json
)

Implementation

MaliciousEntity.fromJson(core.Map _json)
    : this(
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        entity: _json.containsKey('entity')
            ? User.fromJson(
                _json['entity'] as core.Map<core.String, core.dynamic>)
            : null,
        fromHeader: _json.containsKey('fromHeader')
            ? _json['fromHeader'] as core.String
            : null,
      );