PutPolicy.fromJson constructor
PutPolicy.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PutPolicy.fromJson(Map<String, dynamic> json) {
return PutPolicy(
scope: json['scope'] as String,
deadline: json['deadline'] as int,
isPrefixalScope: json['isPrefixalScope'] as int?,
insertOnly: json['insertOnly'] as int?,
endUser: json['endUser'] as String?,
returnUrl: json['returnUrl'] as String?,
returnBody: json['returnBody'] as String?,
callbackUrl: json['callbackUrl'] as String?,
callbackHost: json['callbackHost'] as String?,
callbackBody: json['callbackBody'] as String?,
callbackBodyType: json['callbackBodyType'] as String?,
persistentOps: json['persistentOps'] as String?,
persistentNotifyUrl: json['persistentNotifyUrl'] as String?,
persistentPipeline: json['persistentPipeline'] as String?,
forceSaveKey: json['forceSaveKey'] as bool?,
saveKey: json['saveKey'] as String?,
fsizeMin: json['fsizeMin'] as int?,
fsizeLimit: json['fsizeLimit'] as int?,
detectMime: json['detectMime'] as int?,
mimeLimit: json['mimeLimit'] as String?,
fileType: json['fileType'] as int?,
);
}