toJson method

Map<String, dynamic> toJson()

Implementation

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