factory BatchRetryStrategy.fromJson(Map<String, dynamic> json) { return BatchRetryStrategy( attempts: json['Attempts'] as int?, ); }