toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final borrowConfiguration = this.borrowConfiguration;
  final provisionalConfiguration = this.provisionalConfiguration;
  final renewType = this.renewType;
  return {
    if (borrowConfiguration != null)
      'BorrowConfiguration': borrowConfiguration,
    if (provisionalConfiguration != null)
      'ProvisionalConfiguration': provisionalConfiguration,
    if (renewType != null) 'RenewType': renewType.toValue(),
  };
}