toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'errorType': errorType.name,
    'errorTypeIndex': errorType.index,
    'speechErrorType': speechErrorType.name,
    'speechErrorTypeIndex': speechErrorType.index,
    'durationStatus': durationStatus?.name,
    'durationStatusIndex': durationStatus?.index,
    'expectedPh': expectedPh,
    'predictedPh': predictedPh,
    'expectedRule': _ruleToMap(expectedRule),
    'predictedRule': _ruleToMap(predictedRule),
    'expectedDuration': expectedDuration,
    'actualDuration': actualDuration,
    'messageAr': messageAr,
    'messageEn': messageEn,
    'adviceAr': adviceAr,
    'adviceEn': adviceEn,
  };
}