toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final attempts = this.attempts;
  return {
    if (attempts != null) 'Attempts': attempts,
  };
}