Symptom.fromJson constructor

Symptom.fromJson(
  1. Map _json
)

Implementation

Symptom.fromJson(core.Map _json)
    : this(
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        details: _json.containsKey('details')
            ? _json['details'] as core.String
            : null,
        symptomType: _json.containsKey('symptomType')
            ? _json['symptomType'] as core.String
            : null,
        workerId: _json.containsKey('workerId')
            ? _json['workerId'] as core.String
            : null,
      );