toJson method

Map<String, dynamic> toJson()

Implementation

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