toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.hard != null) {
    json[r'hard'] = this.hard;
  } else {
    json[r'hard'] = null;
  }
  return json;
}