toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (debugMessage != null) 'debugMessage': debugMessage!,
      if (fieldName != null) 'fieldName': fieldName!,
      if (level != null) 'level': level!,
      if (locationOffset != null) 'locationOffset': locationOffset!,
      if (severity != null) 'severity': severity!,
      if (validationUnitName != null)
        'validationUnitName': validationUnitName!,
    };