toMap method

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() {
  Map<String, Object?> hashMap = {};
  hashMap[FIELD_ATTEMPTS_REMAINING] = attemptsRemaining;
  if (status != null) {
    hashMap[FIELD_STATUS] = status;
  }
  return hashMap;
}