toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final algorithm = this.algorithm;
  final roleArn = this.roleArn;
  final constantInitializationVector = this.constantInitializationVector;
  final deviceId = this.deviceId;
  final keyType = this.keyType;
  final region = this.region;
  final resourceId = this.resourceId;
  final secretArn = this.secretArn;
  final url = this.url;
  return {
    'algorithm': algorithm.toValue(),
    'roleArn': roleArn,
    if (constantInitializationVector != null)
      'constantInitializationVector': constantInitializationVector,
    if (deviceId != null) 'deviceId': deviceId,
    if (keyType != null) 'keyType': keyType.toValue(),
    if (region != null) 'region': region,
    if (resourceId != null) 'resourceId': resourceId,
    if (secretArn != null) 'secretArn': secretArn,
    if (url != null) 'url': url,
  };
}