toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (confidence != null) 'confidence': confidence!,
      if (id != null) 'id': id!,
      if (mentionId != null) 'mentionId': mentionId!,
      if (mentionText != null) 'mentionText': mentionText!,
      if (normalizedValue != null)
        'normalizedValue': normalizedValue!.toJson(),
      if (pageAnchor != null) 'pageAnchor': pageAnchor!.toJson(),
      if (properties != null)
        'properties': properties!.map((value) => value.toJson()).toList(),
      if (provenance != null) 'provenance': provenance!.toJson(),
      if (redacted != null) 'redacted': redacted!,
      if (textAnchor != null) 'textAnchor': textAnchor!.toJson(),
      if (type != null) 'type': type!,
    };