File size: 352 Bytes
b225a21
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
class StepRequestBody {
  final String input;
  final Map<String, dynamic>? additionalInput;

  StepRequestBody({required this.input, this.additionalInput});

  Map<String, dynamic> toJson() {
    Map<String, dynamic> result = {'input': input, 'additional_input': additionalInput};
    result.removeWhere((_, v) => v == null);
    return result;
  }
}