toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final roleArn = this.roleArn;
  final s3UrlPrefix = this.s3UrlPrefix;
  final segmentId = this.segmentId;
  final segmentVersion = this.segmentVersion;
  return {
    'RoleArn': roleArn,
    'S3UrlPrefix': s3UrlPrefix,
    if (segmentId != null) 'SegmentId': segmentId,
    if (segmentVersion != null) 'SegmentVersion': segmentVersion,
  };
}