toJson method

Map<String, dynamic> toJson()

Implementation

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